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

Method LoadVariables

engine/Poseidon/IO/ParamFile/ParamFileEval.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70GameVarSpace* GameStateEvaluatorFunctions::LoadVariables(SerializeBinStream& f)
71{
72 GameVarSpace* vars = new GameVarSpace();
73 int n;
74 f.Transfer(n);
75 for (int i = 0; i < n; i++)
76 {
77 RString name;
78 int value;
79 f.Transfer(name);
80 f.Transfer(value);
81 GameVariable var(name, (float)value, true);
82 vars->_vars.Add(var);
83 }
84 return vars;
85}
86
87void GameStateEvaluatorFunctions::SaveVariables(SerializeBinStream& f, GameVarSpace* vars)
88{

Callers

nothing calls this directly

Calls 2

TransferMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected