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