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

Function SaveVar

engine/Poseidon/Game/Commands/GameStateExtGrp.cpp:412–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410}
411
412GameValue SaveVar(const GameState* state, GameValuePar oper1)
413{
414 RString name = oper1;
415 name.Lower();
416 GameVariable& var = const_cast<GameVariable&>(state->GetVariables()[name]);
417 if (state->IsNull(var))
418 {
419 return NOTHING;
420 }
421
422 GStats._campaign.AddVariable(var);
423
424 return NOTHING;
425}
426
427GameValue GetAcceleratedTime(const GameState* state)
428{

Callers

nothing calls this directly

Calls 4

LowerMethod · 0.80
GetVariablesMethod · 0.80
AddVariableMethod · 0.80
IsNullMethod · 0.45

Tested by

no test coverage detected