diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-05 19:15:47 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-09-11 15:19:17 +1000 |
commit | 37f3178d33ab77de064bcbf10b4b03ddb47cc979 (patch) | |
tree | 76e3b3ce2d8716577af98e2bbbc4a41021db5107 /source/game/StarPlayer.hpp | |
parent | 90db1e0fbadaeb625691d3d0d13f5ae6ef057109 (diff) |
Network compatibility changes
Diffstat (limited to 'source/game/StarPlayer.hpp')
-rw-r--r-- | source/game/StarPlayer.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/game/StarPlayer.hpp b/source/game/StarPlayer.hpp index 871ca47..f6e32e0 100644 --- a/source/game/StarPlayer.hpp +++ b/source/game/StarPlayer.hpp @@ -76,7 +76,7 @@ public: static EnumMap<State> const StateNames; Player(PlayerConfigPtr config, Uuid uuid = Uuid()); - Player(PlayerConfigPtr config, ByteArray const& netStore); + Player(PlayerConfigPtr config, ByteArray const& netStore, NetCompatibilityRules rules = {}); Player(PlayerConfigPtr config, Json const& diskStore); void diskLoad(Json const& diskStore); @@ -92,7 +92,7 @@ public: QuestManagerPtr questManager() const; Json diskStore(); - ByteArray netStore(); + ByteArray netStore(NetCompatibilityRules rules = {}); EntityType entityType() const override; ClientEntityMode clientEntityMode() const override; @@ -118,8 +118,8 @@ public: // relative to current position RectF collisionArea() const override; - pair<ByteArray, uint64_t> writeNetState(uint64_t fromStep = 0) override; - void readNetState(ByteArray data, float interpolationStep = 0.0f) override; + pair<ByteArray, uint64_t> writeNetState(uint64_t fromVersion = 0, NetCompatibilityRules rules = {}) override; + void readNetState(ByteArray data, float interpolationStep = 0.0f, NetCompatibilityRules rules = {}) override; void enableInterpolation(float extrapolationHint = 0.0f) override; void disableInterpolation() override; |