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

Method SaveParams

engine/Poseidon/UI/Map/UIMapDisplayBriefing.cpp:638–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void DisplayMap::SaveParams()
639{
640 ParamArchiveSave ar(UserInfoVersion);
641 ar.Parse(GetUserParams());
642
643 ParamArchive arSubcls;
644 if (!ar.OpenSubclass("MainMap", arSubcls))
645 {
646 return;
647 }
648 if (SerializeParams(arSubcls) != LSOK)
649 {
650 return;
651 }
652 if (ar.Save(GetUserParams()) != LSOK)
653 {
654 return;
655 }
656}
657
658LSError DisplayMap::Serialize(ParamArchive& ar)
659{

Callers

nothing calls this directly

Calls 4

GetUserParamsFunction · 0.85
OpenSubclassMethod · 0.80
ParseMethod · 0.45
SaveMethod · 0.45

Tested by

no test coverage detected