MCPcopy Create free account
hub / github.com/ZDoom/Raze / SerializeMap

Function SerializeMap

source/core/savegamehelp.cpp:692–723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692void SerializeMap(FSerializer& arc)
693{
694 if (arc.BeginObject("engine"))
695 {
696 arc("maplocals", Level)
697 // everything here should move into MapLocals as well later.
698 .Array("statlist", statList, MAXSTATUS)
699 .Array("players",PlayerArray, MAXPLAYERS)
700 ("sectors", sector, sectorbackup)
701 ("walls", wall, wallbackup)
702
703 ("myconnectindex", myconnectindex)
704 ("connecthead", connecthead)
705 .Array("connectpoint2", connectpoint2, countof(connectpoint2))
706 ("randomseed", randomseed)
707 ("numshades", numshades) // is this really needed?
708 ("visibility", g_visibility)
709 ("relvisibility", g_relvisibility)
710 ("numsprites", Numsprites)
711 ("allportals", allPortals);
712
713 SerializeInterpolations(arc);
714 arc.EndObject();
715 }
716
717 if (arc.isReading())
718 {
719 setWallSectors();
720 hw_CreateSections();
721 sectionGeometry.SetSize(sections.Size());
722 }
723}
724
725//=============================================================================
726//

Callers 1

SerializeSessionFunction · 0.85

Calls 8

SerializeInterpolationsFunction · 0.85
setWallSectorsFunction · 0.85
hw_CreateSectionsFunction · 0.85
isReadingMethod · 0.80
BeginObjectMethod · 0.45
EndObjectMethod · 0.45
SetSizeMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected