Skip to content

Variable: mockLevelInterface

ts
const mockLevelInterface: {
  add_cam_effector: Mock<UnknownFunction>;
  add_cam_effector2: Mock<UnknownFunction>;
  add_complex_effector: Mock<UnknownFunction>;
  add_pp_effector: Mock<UnknownFunction>;
  change_game_time: Mock<UnknownFunction>;
  disable_input: Mock<UnknownFunction>;
  enable_input: Mock<UnknownFunction>;
  get_bounding_volume: Mock<() => Fbox>;
  get_game_difficulty: Mock<() => number>;
  get_snd_volume: Mock<() => number>;
  get_time_factor: Mock<() => number>;
  get_time_hours: Mock<() => number>;
  get_time_minutes: Mock<() => number>;
  hide_indicators_safe: Mock<UnknownFunction>;
  iterate_online_objects: Mock<(cb: (object: game_object) => void) => void>;
  map_add_object_spot: Mock<UnknownFunction>;
  map_add_object_spot_ser: Mock<UnknownFunction>;
  map_change_spot_hint: Mock<UnknownFunction>;
  map_has_object_spot: Mock<() => number>;
  map_remove_object_spot: Mock<UnknownFunction>;
  name: Mock<() => string>;
  object_by_id: Mock<(id: number) => game_object | undefined>;
  patrol_path_exists: Mock<(name: string) => boolean>;
  present: Mock<() => boolean>;
  rain_factor: Mock<() => number>;
  remove_cam_effector: Mock<UnknownFunction>;
  remove_complex_effector: Mock<UnknownFunction>;
  remove_pp_effector: Mock<UnknownFunction>;
  set_snd_volume: Mock<(volume: number) => void>;
  set_time_factor: Mock<(_factor: number) => void>;
  set_weather: Mock<UnknownFunction>;
  show_indicators: Mock<UnknownFunction>;
  show_weapon: Mock<UnknownFunction>;
  stop_weather_fx: Mock<UnknownFunction>;
  vertex_id: Mock<() => number>;
  vertex_in_direction: Mock<() => number>;
  vertex_position: Mock<() => MockVector>;
};

Mock of the X-Ray engine level namespace for jest/node.

Type Declaration

NameType
add_cam_effectorMock<UnknownFunction>
add_cam_effector2Mock<UnknownFunction>
add_complex_effectorMock<UnknownFunction>
add_pp_effectorMock<UnknownFunction>
change_game_timeMock<UnknownFunction>
disable_inputMock<UnknownFunction>
enable_inputMock<UnknownFunction>
get_bounding_volumeMock<() => Fbox>
get_game_difficultyMock<() => number>
get_snd_volumeMock<() => number>
get_time_factorMock<() => number>
get_time_hoursMock<() => number>
get_time_minutesMock<() => number>
hide_indicators_safeMock<UnknownFunction>
iterate_online_objectsMock<(cb: (object: game_object) => void) => void>
map_add_object_spotMock<UnknownFunction>
map_add_object_spot_serMock<UnknownFunction>
map_change_spot_hintMock<UnknownFunction>
map_has_object_spotMock<() => number>
map_remove_object_spotMock<UnknownFunction>
nameMock<() => string>
object_by_idMock<(id: number) => game_object | undefined>
patrol_path_existsMock<(name: string) => boolean>
presentMock<() => boolean>
rain_factorMock<() => number>
remove_cam_effectorMock<UnknownFunction>
remove_complex_effectorMock<UnknownFunction>
remove_pp_effectorMock<UnknownFunction>
set_snd_volumeMock<(volume: number) => void>
set_time_factorMock<(_factor: number) => void>
set_weatherMock<UnknownFunction>
show_indicatorsMock<UnknownFunction>
show_weaponMock<UnknownFunction>
stop_weather_fxMock<UnknownFunction>
vertex_idMock<() => number>
vertex_in_directionMock<() => number>
vertex_positionMock<() => MockVector>