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
| Name | Type |
|---|---|
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> |