PacketManagement

Undocumented in source.

Members

Aliases

PacketHandler
alias PacketHandler = void delegate(ubyte[] packetData)
Undocumented in source.
PacketHandler
alias PacketHandler = void delegate(ubyte[] packetData, SessionId sessionId)
Undocumented in source.

Functions

createPacket
ubyte[] createPacket(const(P) packet)
Undocumented in source. Be warned that the author may not have intended to support it.
handlePacket
bool handlePacket(size_t packetId, ubyte[] packetData, ENetPeer* peer)
Undocumented in source. Be warned that the author may not have intended to support it.
packetId
size_t packetId()
Undocumented in source. Be warned that the author may not have intended to support it.
packetName
string packetName(size_t packetId)
Undocumented in source. Be warned that the author may not have intended to support it.
packetNames
string[] packetNames()
Undocumented in source. Be warned that the author may not have intended to support it.
printPacketMap
void printPacketMap()
Undocumented in source. Be warned that the author may not have intended to support it.
registerPacket
void registerPacket(PacketHandler handler, string packetName)
Undocumented in source. Be warned that the author may not have intended to support it.
registerPacketHandler
void registerPacketHandler(PacketHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
shufflePackets
void shufflePackets()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

PacketInfo
struct PacketInfo
Undocumented in source.

Variables

packetArray
PacketInfo*[] packetArray;
Undocumented in source.
packetMap
PacketInfo*[TypeInfo] packetMap;
Undocumented in source.

Meta