Whisper Yelled At me 😢

This commit is contained in:
coah
2026-03-04 04:37:07 -06:00
parent 7f59a61704
commit edfc280090
35 changed files with 506 additions and 461 deletions

View File

@@ -8,14 +8,6 @@ class DataOutputStream;
#define PACKET_ENABLE_STAT_TRACKING 0
enum EPacketRoutingMode
{
ROUTING_HOST_ONLY = 0, // Must go through host (game state, actions, spawns)
ROUTING_PREFER_DIRECT, // Use P2P if available, fall back to host
ROUTING_DIRECT_ONLY, // Only send via P2P (keepalives, P2P-specific)
ROUTING_BROADCAST // Send to all peers (host broadcasts)
};
class Packet;
typedef shared_ptr<Packet> (*packetCreateFn)();
@@ -61,10 +53,6 @@ public:
static unordered_set<int> serverReceivedPackets;
static unordered_set<int> sendToAnyClientPackets;
static unordered_map<int, EPacketRoutingMode> packetRoutingModes;
static EPacketRoutingMode GetRoutingMode(int packetId);
static void SetRoutingMode(int packetId, EPacketRoutingMode mode);
// 4J Stu - Added the sendToAnyClient param so we can limit some packets to be only sent to one player on a system
// 4J Stu - Added renderStats param for use in debugging
static void map(int id, bool receiveOnClient, bool receiveOnServer, bool sendToAnyClient, bool renderStats, const type_info& clazz, packetCreateFn );