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

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarPlayer.hpp')
-rw-r--r--source/game/StarPlayer.hpp8
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;