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

summaryrefslogtreecommitdiff
path: root/source/game/StarNetPacketSocket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/game/StarNetPacketSocket.hpp')
-rw-r--r--source/game/StarNetPacketSocket.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/game/StarNetPacketSocket.hpp b/source/game/StarNetPacketSocket.hpp
index c2c06fa..7c3e7ac 100644
--- a/source/game/StarNetPacketSocket.hpp
+++ b/source/game/StarNetPacketSocket.hpp
@@ -5,6 +5,7 @@
#include "StarP2PNetworkingService.hpp"
#include "StarNetPackets.hpp"
#include "StarZSTDCompression.hpp"
+#include "StarNetCompatibility.hpp"
namespace Star {
@@ -75,10 +76,11 @@ public:
virtual Maybe<PacketStats> incomingStats() const;
virtual Maybe<PacketStats> outgoingStats() const;
- virtual void setLegacy(bool legacy);
- virtual bool legacy() const;
+ virtual void setNetRules(NetCompatibilityRules netRules);
+ virtual NetCompatibilityRules netRules() const;
+
private:
- bool m_legacy = false;
+ NetCompatibilityRules m_netRules;
};
class CompressedPacketSocket : public PacketSocket {
@@ -142,8 +144,6 @@ public:
Maybe<PacketStats> incomingStats() const override;
Maybe<PacketStats> outgoingStats() const override;
-
- void setLegacy(bool legacy) override;
private:
TcpPacketSocket(TcpSocketPtr socket);