split mega switch

This commit is contained in:
Paul 2026-03-25 07:26:38 +03:00
parent 1556559211
commit 15f12d86b3
2 changed files with 6480 additions and 7223 deletions

View file

@ -2321,6 +2321,7 @@ private:
* Handle incoming packet from world server
*/
void handlePacket(network::Packet& packet);
void registerOpcodeHandlers();
void enqueueIncomingPacket(const network::Packet& packet);
void enqueueIncomingPacketFront(network::Packet&& packet);
void processQueuedIncomingPackets();
@ -2646,6 +2647,10 @@ private:
float localOrientation);
void clearTransportAttachment(uint64_t childGuid);
// Opcode dispatch table — built once in registerOpcodeHandlers(), called by handlePacket()
using PacketHandler = std::function<void(network::Packet&)>;
std::unordered_map<LogicalOpcode, PacketHandler> dispatchTable_;
// Opcode translation table (expansion-specific wire ↔ logical mapping)
OpcodeTable opcodeTable_;

File diff suppressed because it is too large Load diff