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

Function TriShowMap

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

triShowMap <0|1> -> "OK" or "FAIL: "

Source from the content-addressed store, hash-verified

22
23/// triShowMap <0|1> -> "OK" or "FAIL:<reason>"
24GameValue TriShowMap(const GameState* /*state*/, GameValuePar arg)
25{
26 if (!GWorld)
27 return GameValue("FAIL:no_world");
28 auto* map = dynamic_cast<DisplayMap*>(GWorld->Map());
29 if (!map)
30 return GameValue("FAIL:no_map");
31 map->ShowMap((float)arg != 0.0f);
32 LOG_INFO(Core, "[tri] triShowMap {}", (float)arg != 0.0f);
33 return GameValue("OK");
34}
35
36/// triMapSetScale <scale> — set the in-mission map zoom (clamped to the map's own min/max).
37GameValue TriMapSetScale(const GameState* /*state*/, GameValuePar arg)

Callers

nothing calls this directly

Calls 3

ShowMapMethod · 0.80
GameValueClass · 0.50
MapMethod · 0.45

Tested by

no test coverage detected