public packetReceivedEventArgs(Packet pack, int ID) { this.packet = pack; this.Type = (PacketType)ID; }
public void sendPacket(Packet pack) { if (loggedin) lock (packets) packets.Enqueue(pack); }