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

Function TriOpenMap

engine/Poseidon/Game/Commands/GameStateExtTestMap.cpp:13–21  ·  view source on GitHub ↗

triOpenMap -> "OK" or "FAIL: "

Source from the content-addressed store, hash-verified

11
12/// triOpenMap -> "OK" or "FAIL:<reason>"
13GameValue TriOpenMap(const GameState* /*state*/)
14{
15 if (!GWorld)
16 return GameValue("FAIL:no_world");
17 GWorld->CreateMainMap();
18 GWorld->ForceMap(true);
19 LOG_INFO(Core, "[tri] triOpenMap");
20 return GameValue("OK");
21}
22
23/// triShowMap <0|1> -> "OK" or "FAIL:<reason>"
24GameValue TriShowMap(const GameState* /*state*/, GameValuePar arg)

Callers

nothing calls this directly

Calls 3

CreateMainMapMethod · 0.80
ForceMapMethod · 0.80
GameValueClass · 0.50

Tested by

no test coverage detected