mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
split mega switch
This commit is contained in:
parent
1556559211
commit
15f12d86b3
2 changed files with 6480 additions and 7223 deletions
|
|
@ -2321,6 +2321,7 @@ private:
|
||||||
* Handle incoming packet from world server
|
* Handle incoming packet from world server
|
||||||
*/
|
*/
|
||||||
void handlePacket(network::Packet& packet);
|
void handlePacket(network::Packet& packet);
|
||||||
|
void registerOpcodeHandlers();
|
||||||
void enqueueIncomingPacket(const network::Packet& packet);
|
void enqueueIncomingPacket(const network::Packet& packet);
|
||||||
void enqueueIncomingPacketFront(network::Packet&& packet);
|
void enqueueIncomingPacketFront(network::Packet&& packet);
|
||||||
void processQueuedIncomingPackets();
|
void processQueuedIncomingPackets();
|
||||||
|
|
@ -2646,6 +2647,10 @@ private:
|
||||||
float localOrientation);
|
float localOrientation);
|
||||||
void clearTransportAttachment(uint64_t childGuid);
|
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)
|
// Opcode translation table (expansion-specific wire ↔ logical mapping)
|
||||||
OpcodeTable opcodeTable_;
|
OpcodeTable opcodeTable_;
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue