Skip to content

index

Classes

ClassDescription
MockActionBaseMock of the X-Ray engine GOAP action base class.
MockActionPlannerMock of the X-Ray engine GOAP action planner.
MockAlifeCreatureActorClass based server object mock.
MockAlifeDynamicObjectMock dynamic alife server object.
MockAlifeDynamicObjectVisualMock alife dynamic visual server object.
MockAlifeHangingLampMock alife hanging lamp server object.
MockAlifeHelicopterMock helicopter server object.
MockAlifeHumanStalkerMock server human object representation.
MockAlifeInventoryBoxMock alife inventory box server object.
MockAlifeItemMock alife item server object.
MockAlifeItemAmmoMock alife ammo item server object.
MockAlifeItemArtefactMock alife artefact item server object.
MockAlifeItemDetectorMock alife detector server object.
MockAlifeItemExplosiveMock alife explosive server object.
MockAlifeItemGrenadeMock alife grenade item server object.
MockAlifeItemHelmetMock alife helmet server object.
MockAlifeItemOutfitMock alife outfit server object.
MockAlifeItemPdaMock server PDA item.
MockAlifeItemTorchMock torch item server object.
MockAlifeItemWeaponMock alife weapon item server object.
MockAlifeItemWeaponAutoShotgunMock alife auto shotgun server object.
MockAlifeItemWeaponMagazinedMock alife magazined weapon item server object.
MockAlifeItemWeaponMagazinedWGLMock alife magazined weapon with grenade launcher server object.
MockAlifeItemWeaponShotgunMock alife shotgun weapon server object.
MockAlifeLevelChangerMock alife level changer server object.
MockAlifeMonsterBaseMock alife monster creature server object.
MockAlifeObjectMock base alife object implementation.
MockAlifeObjectPhysicMock alife physic server object.
MockAlifeOnlineOfflineGroupClass mocking generic server offline-online group.
MockAlifeSimulatorMock alife simulator registry containing data with server objects.
MockAlifeSmartCoverMock generic server object handling smart covers.
MockAlifeSmartZoneMock alife smart zone server object.
MockAnimMock of the X-Ray engine anim action enumeration.
MockAnomalousZoneMock anomalous zone server object.
MockCAlifeMonsterBrainMock of the X-Ray engine CALifeMonsterBrain alife brain.
MockCALifeSmartTerrainTaskMock of the X-Ray engine alife task for smart terrains.
MockCArtefactMock of the X-Ray engine artefact object.
MockCGameFontMock of the X-Ray engine CGameFont class for jest/node.
MockCGameGraphMock of the X-Ray engine game_graph() singleton.
MockCGameTaskMock x-ray task object.
MockCHelicopterMock of the X-Ray engine helicopter object.
MockCMainMenuMock of the X-Ray engine CMainMenu manager.
MockColorMock of the X-Ray engine color class for jest/node.
MockCondMock of the X-Ray engine cond action-completion enumeration.
MockConnectErrorCb-
MockConsoleMock of the X-Ray engine game console.
MockCSavedGameWrapperMock of the X-Ray engine CSavedGameWrapper.
MockCScriptXmlInitMock xml file with forms sources.
MockCServerListMock server list UI component.
MockCSightParamsMock of the X-Ray engine CSightParams sight-type enumeration class.
MockCTimeMock of the X-Ray engine CTime object for jest/node.
MockCUI3tButtonMock CUI button.
MockCUICheckButtonMock check button.
MockCUIComboBoxMock base window class.
MockCUICustomSpinMock base window class.
MockCUIDialogWndMock base window class.
MockCUIEditBoxMocking edit box for testing.
MockCUIGameCustomMock game hud UI element.
MockCUILinesMock CUILines.
MockCUIListBoxMock CUI list box.
MockCUIListBoxItemMock generic list box item.
MockCUIListBoxItemMsgChainMock UI list box message chain.
MockCUIMapInfoMock base window class.
MockCUIMapListMock base window class.
MockCUIMessageBoxExMock generic message box.
MockCUIMMShniagaMock base window class.
MockCUIScriptWndMocking script window for testing.
MockCUIScrollViewMock generic scroll view.
MockCUISpinFltMock base window class.
MockCUISpinNumMock base window class.
MockCUISpinTextMock base window class.
MockCUIStaticMock CUI static.
MockCUITabControlMock generic tabs.
MockCUITextWndMock base window class.
MockCUITrackBarMock generic trackbar.
MockCUIWindowMock base window class.
MockCVertexMock of a game-level vertex object for jest/node.
MockCZoneCampfireMock of the X-Ray engine campfire object.
MockDangerObjectMock xray engine danger object.
MockDeviceMock of the X-Ray engine device() singleton for jest/node.
MockEffectorMock of a generic X-Ray engine effector class for jest/node.
MockEntityActionMock of the X-Ray engine entity_action class.
MockFboxMock of the X-Ray engine Fbox bounding box for jest/node.
MockFileStatusMock of the X-Ray engine FS file status.
MockFileSystemMock engine FS manager.
MockFileSystemListMock of the X-Ray engine FS file list.
MockFlags32Mock of the X-Ray engine flags32 bit-flags object.
MockFrectMock of the X-Ray engine Frect rectangle class.
MockGameObjectAbstract game object mock.
MockGameType-
MockHangingLampMock of the X-Ray engine hanging lamp object.
MockHitMock of the X-Ray engine hit object for jest/node.
MockIniFileMock of the X-Ray engine ini_file for jest/node.
MockIoFileMock generic io file.
MockLoginManagerMock of the X-Ray engine multiplayer login_manager.
MockLoginOperationCb-
MockLookMock of the X-Ray engine look action enumeration.
MockLuabindClassMock abstraction for luabind classes. Handles the __name wrapper that the custom transformer injects on luabind classes.
MockLuaMapMock tstl map data structure. In runtime objects, arrays and tables are same, but in test env have to mock them with compat and workarounds.
MockLuaTableMock tstl table data structure. In runtime objects, arrays and tables are same, but in test env have to mock them with compat and workarounds.
MockMonsterHitInfo-
MockMoveMock move actions class.
MockNetProcessorX-Ray net processor mock for testing save/load of data.
MockNoiseMock of the X-Ray engine noise class for jest/node.
MockObjectMock of the X-Ray engine object action/state enumeration.
MockObjectBinderMock of the X-Ray engine object binder (client object lifecycle wrapper).
MockObjectFactoryMock of the X-Ray engine game object factory.
MockParticleObjectMock of the X-Ray engine particles object.
MockPatrolMock generic patrol object.
MockPhraseMock of the X-Ray engine dialog phrase.
MockPhraseDialogMock of the X-Ray engine dialog phrase container.
MockPhraseScriptMock of the X-Ray engine dialog CPhraseScript.
MockPhysicObjectMock of the X-Ray engine CPhysicObject.
MockPhysicsElementMock of the X-Ray engine physics element.
MockPhysicsJointMock of the X-Ray engine physics joint.
MockPhysicsShellMock of the X-Ray engine physics shell.
MockProfile-
MockProfileTimerMock of the X-Ray engine high-precision profile_timer.
MockPropertiesHelperMock of the X-Ray engine C++ properties_helper class.
MockPropertyEvaluatorMock of the X-Ray engine AI property evaluator.
MockPropertyEvaluatorConstMock of a constant-value AI property evaluator.
MockPropertyStorageMock of the X-Ray engine AI property storage (properties + actions for the graph).
MockServerAlifeCreatureAbstractMock server creature object.
MockSightParametersMock AI sight parameters class.
MockSoundMock of the X-Ray engine sound action enumeration.
MockSoundObjectMock of the X-Ray engine sound object.
MockSpaceRestrictorMock space restrictor server object.
MockStaticDrawableWrapperMock StaticDrawableWrapper.
MockTaskMock of the X-Ray engine task state enumeration.
MockTorridZoneMock torrid zone server object.
MockVectorMock of the X-Ray engine 3D vector class for jest/node.
MockVector2DMock of the X-Ray engine 2D vector2 class for jest/node.
MockWorldPropertyMock of the X-Ray engine logics world property.
MockWorldStateMock of the X-Ray engine logics world state.
MockZoneVisualMock visual zone server object.

Enumerations

EnumerationDescription
EMockPacketDataTypeData types that can be saved in net packets (game save files).

Functions

FunctionDescription
luaTableToArrayTransform lua table to array for easier testing with equals checks.
luaTableToObjectTransform in a recursive way lua tables to JS arrays for easier testing/verification.
mapFromLua-
mockActionBaseMock action base factory.
mockActionPlannerMock action planner factory.
mockCastPlannerMock of the engine cast-planner behaviour: lazily create a hidden planner on the action.
mockCGameTaskMock task object.
mockCharactersGoodwillMock goodwill between characters by id.
mockCreateIniFileMock of the engine create_ini_file global.
mockFromLuaMapxray16/mocks - runtime Lua environment mocks for testing X-Ray TypeScriptToLua code under jest/node.
mockFromLuaTableJust transform types of LuaTable to mockLuaTable.
mockObjectFactoryMock generic object factory.
mockRangeMock of the $range TypeScriptToLua language-extension helper.
mockTonumberMock lua tonumber global, backed by a real Lua VM for 1-1 parsing behaviour.
mockToStringMock lua tostring global method.
mockTypeMock lua type global method.

Interfaces

InterfaceDescription
IMockAlifeObjectConfig-
IMockGameObjectConfig-
IPatrolMockGeneric patrol mock data shape. Consumers (the engine) inject a registry of these via MockPatrol.setup.

Type Aliases

Type AliasDescription
TDefaultCommunitySingle community (faction) name.

Variables

VariableDescription
charactersGoodwillMocked characters relations registry.
communityGoodwillMocked community relations registry.
defaultCommunitiesDefault set of game communities (factions). The engine may extend this with additional ones.
mockActorStatsInterfaceMock of the X-Ray engine actor-stats interface (subset).
mockCallbacksMock callback IDs constants.
mockClsidMock table mapping engine class identifier names to numeric ids for tests.
mockCommandLineMock of the engine command_line global.
mockConfigShared incrementing id counter for object mocks (mirrors the engine test mockConfig).
mockDebugMock lua debug library.
mockDikKeys-
mockErrorMock lua error global. Mirrors the engine behaviour of raising an exception with the provided message.
mockGameInterfaceMock of the X-Ray engine game namespace for jest/node.
mockGetARGBMock of the engine GetARGB global.
mockGetGameHudGet game hud mock (memoized singleton, mirrors the engine get_hud global).
mockIo-
mockJitMock jit globals library.
mockLevelInterfaceMock of the X-Ray engine level namespace for jest/node.
mockMainMenuInterfaceMock of the X-Ray engine main_menu namespace (subset).
mockMarshalMock of the OpenXRay marshal global for jest/node.
mockMathMock default lua math library.
mockRelationRegistryInterfaceMock module with relations methods and registry.
mockSndType-
mockStalkerIdsMock engine class ids for testing environment. In game engine all these constants do not match since they are dynamic and allocated on runtime.
mockStringMock lua global string methods. Use lua VM to get 1-1 behaviour in some cases.
mockTableMock default lua lib table methods.
mockUiEvents-