updated Player and Missile serializing for previous commit

This commit is contained in:
Thomas Jentzsch 2021-08-28 14:14:37 +02:00
parent 7aa40d4c73
commit f666ef52df
2 changed files with 4 additions and 0 deletions

View File

@ -285,6 +285,7 @@ bool Missile::save(Serializer& out) const
out.putBool(myIsVisible);
out.putBool(myIsRendering);
out.putByte(myRenderCounter);
out.putByte(myCopy);
out.putByte(myDecodesOffset);
@ -325,6 +326,7 @@ bool Missile::load(Serializer& in)
myIsVisible = in.getBool();
myIsRendering = in.getBool();
myRenderCounter = in.getByte();
myCopy = in.getByte();
myDecodesOffset = in.getByte();
myDecodes = DrawCounterDecodes::get().missileDecodes()[myDecodesOffset];

View File

@ -425,6 +425,7 @@ bool Player::save(Serializer& out) const
out.putBool(myIsRendering);
out.putByte(myRenderCounter);
out.putByte(myRenderCounterTripPoint);
out.putByte(myCopy);
out.putByte(myDivider);
out.putByte(myDividerPending);
out.putByte(mySampleCounter);
@ -471,6 +472,7 @@ bool Player::load(Serializer& in)
myIsRendering = in.getBool();
myRenderCounter = in.getByte();
myRenderCounterTripPoint = in.getByte();
myCopy = in.getByte();
myDivider = in.getByte();
myDividerPending = in.getByte();
mySampleCounter = in.getByte();