Skip to content

Variable: mockGameInterface

ts
const mockGameInterface: {
  CTime: Mock<() => MockCTime>;
  get_game_time: Mock<() => MockCTime>;
  has_active_tutorial: Mock<() => boolean>;
  start_tutorial: Mock<() => void>;
  stop_tutorial: Mock<() => void>;
  time: Mock<() => number>;
  translate_string: Mock<(key: string) => string>;
};

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

Type Declaration

NameType
CTimeMock<() => MockCTime>
get_game_timeMock<() => MockCTime>
has_active_tutorialMock<() => boolean>
start_tutorialMock<() => void>
stop_tutorialMock<() => void>
timeMock<() => number>
translate_stringMock<(key: string) => string>