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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user