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/interfaces/StarEntity.hpp | |
parent | 90db1e0fbadaeb625691d3d0d13f5ae6ef057109 (diff) |
Network compatibility changes
Diffstat (limited to 'source/game/interfaces/StarEntity.hpp')
-rw-r--r-- | source/game/interfaces/StarEntity.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/game/interfaces/StarEntity.hpp b/source/game/interfaces/StarEntity.hpp index 7da2a41..56bd5ac 100644 --- a/source/game/interfaces/StarEntity.hpp +++ b/source/game/interfaces/StarEntity.hpp @@ -3,6 +3,7 @@ #include "StarCasting.hpp" #include "StarDamage.hpp" #include "StarLightSource.hpp" +#include "StarDataStream.hpp" namespace Star { @@ -63,11 +64,11 @@ public: // uninitalized. Should return the delta to be written to the slave, along // with the version to pass into writeDeltaState on the next call. The first // delta written to a slave entity will always be the delta starting with 0. - virtual pair<ByteArray, uint64_t> writeNetState(uint64_t fromVersion = 0); + virtual pair<ByteArray, uint64_t> writeNetState(uint64_t fromVersion = 0, NetCompatibilityRules rules = {}); // Will be called with deltas written by writeDeltaState, including if the // delta is empty. interpolationTime will be provided if interpolation is // enabled. - virtual void readNetState(ByteArray data, float interpolationTime = 0.0); + virtual void readNetState(ByteArray data, float interpolationTime = 0.0f, NetCompatibilityRules rules = {}); virtual void enableInterpolation(float extrapolationHint); virtual void disableInterpolation(); |