public GamePacket GetPacket(PacketIdentifier packetId) { return(GetPacketType(packetId).GetConstructor(emptyTypes).Invoke(emptyObjects) as GamePacket); }
public void Remove(PacketIdentifier packetId) { packets.Remove(packetId); }
public bool TryGetPacketType(PacketIdentifier packetId, out Type type) { return(packets.TryGetValue(packetId, out type)); }
public bool Contains(PacketIdentifier packetId) { return(packets.ContainsKey(packetId)); }
public PacketEventArgs(PacketIdentifier packetId, GamePacket gamePacket) { PacketId = packetId; Packet = gamePacket; }