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

Method Serialize

engine/Poseidon/AI/AIUnit.cpp:549–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

547}
548
549LSError AIUnitInfo::Serialize(ParamArchive& ar)
550{
551 PARAM_CHECK(ar.Serialize("identityContext", _identityContext, 1, RString()))
552 PARAM_CHECK(ar.Serialize("name", _name, 1))
553 PARAM_CHECK(ar.Serialize("experience", _experience, 1, 0))
554 PARAM_CHECK(ar.SerializeEnum("rank", _rank, 1, RankPrivate))
555 PARAM_CHECK(ar.Serialize("face", _face, 1, ""))
556 PARAM_CHECK(ar.Serialize("glasses", _glasses, 1, "None"))
557 PARAM_CHECK(ar.Serialize("speaker", _speaker, 1, ""))
558 PARAM_CHECK(ar.Serialize("pitch", _pitch, 1, 1.0))
559 return LSOK;
560}
561
562LSError AIUnit::Serialize(ParamArchive& ar)
563{

Callers 2

LoadRefMethod · 0.45
SaveRefMethod · 0.45

Calls 13

SerializeEnumMethod · 0.80
SerializeRefMethod · 0.80
GetPassMethod · 0.80
FirstPassMethod · 0.80
SecondPassMethod · 0.80
GetArVersionMethod · 0.80
RStringClass · 0.50
TimeClass · 0.50
IsSavingMethod · 0.45
GetLengthMethod · 0.45
SetFaceMethod · 0.45
SetGlassesMethod · 0.45

Tested by

no test coverage detected