mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
- Exhumed: Init
This commit is contained in:
parent
15579798ad
commit
54eec61828
2 changed files with 25 additions and 20 deletions
|
@ -909,25 +909,28 @@ void LoadObjects()
|
||||||
nCameraz = initz;
|
nCameraz = initz;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SerializeInit(FSerializer& arc)
|
||||||
static SavegameHelper sghinit("init",
|
{
|
||||||
SV(initx),
|
if (arc.BeginObject("init"))
|
||||||
SV(inity),
|
{
|
||||||
SV(initz),
|
arc("initx", initx)
|
||||||
SV(inita),
|
("inity", inity)
|
||||||
SV(initsect),
|
("initz", initz)
|
||||||
SV(nCurChunkNum),
|
("inita", inita)
|
||||||
SA(nBodyGunSprite),
|
("initsect", initsect)
|
||||||
SV(nCurBodyGunNum),
|
("curchunk", nCurChunkNum)
|
||||||
SA(SectSoundSect),
|
.Array("bodygunsprite", nBodyGunSprite, countof(nBodyGunSprite))
|
||||||
SA(SectSound),
|
("curbodygun", nCurBodyGunNum)
|
||||||
SA(SectFlag),
|
.Array("soundsect", SectSoundSect, numsectors)
|
||||||
SA(SectDepth),
|
.Array("sectsound", SectSound, numsectors)
|
||||||
SA(SectAbove),
|
.Array("sectflag", SectFlag, numsectors)
|
||||||
SA(SectDamage),
|
.Array("sectdepth", SectDepth, numsectors)
|
||||||
SA(SectSpeed),
|
.Array("sectabove", SectAbove, numsectors)
|
||||||
SA(SectBelow),
|
.Array("sectdamage", SectDamage, numsectors)
|
||||||
nullptr);
|
.Array("sectspeed", SectSpeed, numsectors)
|
||||||
|
.Array("sectbelow", SectBelow, numsectors)
|
||||||
|
.EndObject();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
END_PS_NS
|
END_PS_NS
|
||||||
|
|
|
@ -32,6 +32,7 @@ BEGIN_PS_NS
|
||||||
void SerializeAnim(FSerializer& arc);
|
void SerializeAnim(FSerializer& arc);
|
||||||
void SerializeBubbles(FSerializer& arc);
|
void SerializeBubbles(FSerializer& arc);
|
||||||
void SerializeGun(FSerializer& arc);
|
void SerializeGun(FSerializer& arc);
|
||||||
|
void SerializeInit(FSerializer& arc);
|
||||||
void SerializeItems(FSerializer& arc);
|
void SerializeItems(FSerializer& arc);
|
||||||
void SerializeMove(FSerializer& arc);
|
void SerializeMove(FSerializer& arc);
|
||||||
void SerializeLighting(FSerializer& arc);
|
void SerializeLighting(FSerializer& arc);
|
||||||
|
@ -78,6 +79,7 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
SerializeAnim(arc);
|
SerializeAnim(arc);
|
||||||
SerializeBubbles(arc);
|
SerializeBubbles(arc);
|
||||||
SerializeGun(arc);
|
SerializeGun(arc);
|
||||||
|
SerializeInit(arc);
|
||||||
SerializeItems(arc);
|
SerializeItems(arc);
|
||||||
SerializeMove(arc);
|
SerializeMove(arc);
|
||||||
SerializeLighting(arc);
|
SerializeLighting(arc);
|
||||||
|
|
Loading…
Reference in a new issue