MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / TriGameMode

Function TriGameMode

engine/Poseidon/Game/Commands/GameStateExtTest.cpp:224–229  ·  view source on GitHub ↗

triGameMode — returns the current game mode as a number.

Source from the content-addressed store, hash-verified

222}
223
224/// triGameMode — returns the current game mode as a number.
225GameValue TriGameMode(const GameState* state)
226{
227 if (!GWorld)
228 return GameValue(float(-1));
229 return GameValue(float(static_cast<int>(GWorld->GetMode())));
230}
231
232/// triStartRandomCutscene — from a running mission, trigger the mission->menu

Callers

nothing calls this directly

Calls 2

GameValueClass · 0.50
GetModeMethod · 0.45

Tested by

no test coverage detected