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

Method SerializeAll

engine/Poseidon/UI/Map/UIMapExtDisplay.cpp:98–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 }
97}
98
99LSError DisplayArcadeMap::SerializeAll(ParamArchive& ar, bool merge)
100{
101 ATSParams params;
102 ar.SetParams(&params);
103 if (merge)
104 {
105 ArcadeTemplate t;
106 PARAM_CHECK(ar.Serialize("Mission", t, 1))
107 _templateMission.Merge(t);
108 PARAM_CHECK(ar.Serialize("Intro", t, 1))
109 _templateIntro.Merge(t);
110 PARAM_CHECK(ar.Serialize("OutroWin", t, 1))
111 _templateOutroWin.Merge(t);
112 PARAM_CHECK(ar.Serialize("OutroLoose", t, 1))
113 _templateOutroLoose.Merge(t);
114 // do not merge cutscenes
115 }
116 else
117 {
118 PARAM_CHECK(ar.Serialize("Mission", _templateMission, 1))
119 PARAM_CHECK(ar.Serialize("Intro", _templateIntro, 1))
120 PARAM_CHECK(ar.Serialize("OutroWin", _templateOutroWin, 1))
121 PARAM_CHECK(ar.Serialize("OutroLoose", _templateOutroLoose, 1))
122 if (ar.IsLoading() && ar.GetArVersion() < 7)
123 {
124 ArcadeIntel intel;
125 PARAM_CHECK(ar.Serialize("Intel", intel, 1))
126 _templateMission.intel = intel;
127 _templateIntro.intel = intel;
128 _templateOutroWin.intel = intel;
129 _templateOutroLoose.intel = intel;
130 }
131 }
132 return LSOK;
133}
134
135bool DisplayArcadeMap::LoadTemplates(const char* filename)

Callers

nothing calls this directly

Calls 5

GetArVersionMethod · 0.80
SetParamsMethod · 0.45
SerializeMethod · 0.45
MergeMethod · 0.45
IsLoadingMethod · 0.45

Tested by

no test coverage detected