1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +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

@@ -10,6 +10,7 @@
#include "../Game.h"
#include "../audio/audio.h"
#include "../core/DataSerialiser.h"
#include "../localisation/Date.h"
#include "../scenario/Scenario.h"
#include "../sprites.h"
@@ -352,3 +353,12 @@ void Duck::RemoveAll()
duck->Remove();
}
}
void Duck::Serialise(DataSerialiser& stream)
{
EntityBase::Serialise(stream);
stream << frame;
stream << target_x;
stream << target_y;
stream << state;
}