diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-31 20:22:09 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-31 20:22:09 +1000 |
commit | 0ef88075395cdf703b8fae6b729dd0a997b07423 (patch) | |
tree | bc2ec1f5d998190e286c07b2f3bb0e9b442f17ed /source/game/StarNetPacketSocket.hpp | |
parent | 2dc10fa5ad76784c7053d00887a7f878b58dfcf9 (diff) |
Changes to support modifying networking while maintaining legacy support
Diffstat (limited to 'source/game/StarNetPacketSocket.hpp')
-rw-r--r-- | source/game/StarNetPacketSocket.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/game/StarNetPacketSocket.hpp b/source/game/StarNetPacketSocket.hpp index da90386..bfdd20c 100644 --- a/source/game/StarNetPacketSocket.hpp +++ b/source/game/StarNetPacketSocket.hpp @@ -72,6 +72,11 @@ public: // Default implementations return nothing. virtual Maybe<PacketStats> incomingStats() const; virtual Maybe<PacketStats> outgoingStats() const; + + void setLegacy(bool legacy); + bool legacy() const; +private: + bool m_legacy = false; }; // PacketSocket for local communication. |