1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-31 02:35:46 +01:00

Move entity serialisation functions (#16003)

This commit is contained in:
ζeh Matt
2021-11-25 23:25:04 -08:00
committed by GitHub
parent 56e78d5733
commit e3f8ff78b8
13 changed files with 287 additions and 274 deletions

View File

@@ -11,6 +11,7 @@
#include "../Game.h"
#include "../audio/audio.h"
#include "../core/DataSerialiser.h"
#include "../network/network.h"
#include "../scenario/Scenario.h"
#include "../util/Util.h"
@@ -96,3 +97,12 @@ void Balloon::Create(const CoordsXYZ& balloonPos, int32_t colour, bool isPopped)
balloon->colour = colour;
balloon->popped = (isPopped ? 1 : 0);
}
void Balloon::Serialise(DataSerialiser& stream)
{
EntityBase::Serialise(stream);
stream << frame;
stream << popped;
stream << time_to_move;
stream << colour;
}