mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-14 08:23: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
|
||||
*/
|
||||
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
Loading…
Add table
Add a link
Reference in a new issue