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

Method Serialize

engine/Poseidon/Game/Scripting/ExpressExt.cpp:57–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56 // Registration happens via InitScriptingDefaults(), called from
57 // Poseidon::InitDefaults() at app startup.
58} GParamArchiveFunctions;
59
60LSError ParamArchiveFunctions::Serialize(ParamArchive& ar, GameState* value)
61{
62 void* old = ar.GetParams();
63 ar.SetParams(value);
64 PARAM_CHECK(ar.Serialize("Variables", value->GetVariables(), 1))
65 ar.SetParams(old);
66 return LSOK;
67}

Callers 1

SerializeMethod · 0.45

Calls 3

GetVariablesMethod · 0.80
GetParamsMethod · 0.45
SetParamsMethod · 0.45

Tested by

no test coverage detected