| 96 | } |
| 97 | } |
| 98 | |
| 99 | LSError DisplayArcadeMap::SerializeAll(ParamArchive& ar, bool merge) |
| 100 | { |
| 101 | ATSParams params; |
| 102 | ar.SetParams(¶ms); |
| 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 | |
| 135 | bool DisplayArcadeMap::LoadTemplates(const char* filename) |
nothing calls this directly
no test coverage detected