Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlantDrop.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-09-05 19:15:47 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-09-11 15:19:17 +1000
commit37f3178d33ab77de064bcbf10b4b03ddb47cc979 (patch)
tree76e3b3ce2d8716577af98e2bbbc4a41021db5107 /source/game/StarPlantDrop.hpp
parent90db1e0fbadaeb625691d3d0d13f5ae6ef057109 (diff)
Network compatibility changes
Diffstat (limited to 'source/game/StarPlantDrop.hpp')
-rw-r--r--source/game/StarPlantDrop.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarPlantDrop.hpp b/source/game/StarPlantDrop.hpp
index 1b630f4..7528e5d 100644
--- a/source/game/StarPlantDrop.hpp
+++ b/source/game/StarPlantDrop.hpp
@@ -15,9 +15,9 @@ public:
PlantDrop(List<Plant::PlantPiece> pieces, Vec2F const& position, Vec2F const& strikeVector, String const& description,
bool upsideDown, Json stemConfig, Json foliageConfig, Json saplingConfig,
bool master, float random);
- PlantDrop(ByteArray const& netStore);
+ PlantDrop(ByteArray const& netStore, NetCompatibilityRules rules = {});
- ByteArray netStore();
+ ByteArray netStore(NetCompatibilityRules rules = {});
EntityType entityType() const override;
@@ -26,8 +26,8 @@ public:
String description() const override;
- pair<ByteArray, uint64_t> writeNetState(uint64_t fromVersion = 0) override;
- void readNetState(ByteArray data, float interpolationTime = 0.0f) override;
+ pair<ByteArray, uint64_t> writeNetState(uint64_t fromVersion = 0, NetCompatibilityRules rules = {}) override;
+ void readNetState(ByteArray data, float interpolationTime = 0.0f, NetCompatibilityRules rules = {}) override;
void enableInterpolation(float extrapolationHint = 0.0f) override;
void disableInterpolation() override;