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

Function TriSeedMods

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

triSeedMods — inject n fake catalog rows into the active MODS table.

Source from the content-addressed store, hash-verified

422}
423
424/// triSessionPing <row> - return the currently visible MP browser row ping.
425GameValue TriSessionPing(const GameState* state, GameValuePar arg)
426{
427 int row = static_cast<int>(static_cast<GameScalarType>(arg));
428 DisplayMultiplayer* mp = dynamic_cast<DisplayMultiplayer*>(GetActiveDisplayForSQF());
429 if (mp == nullptr)
430 {
431 LOG_ERROR(Core, "[tri] triSessionPing: MP server browser is not the active display");
432 return GameValue(static_cast<GameScalarType>(-1));
433 }
434 return GameValue(static_cast<GameScalarType>(mp->GetVisibleSessionPingForTest(row)));
435}
436
437/// triSeedMods <n> — inject n fake catalog rows into the active MODS table.
438GameValue TriSeedMods(const GameState* state, GameValuePar arg)
439{

Callers

nothing calls this directly

Calls 3

GetActiveDisplayForSQFFunction · 0.85
SeedTestModsMethod · 0.80
GameValueClass · 0.50

Tested by

no test coverage detected