void ProcessPackets(object sender, PacketReadEventArgs args) {
     switch (args.Packet.PacketID) {
         case PacketID.Login:
             OnLogin((PacketLogin)args.Packet);
             return;
         case PacketID.Ping:
             OnPing();
             return;
         default:
             return;
     }
 }
        void ProcessPackets(object sender, PacketReadEventArgs args)
        {
            switch (args.Packet.PacketID)
            {
            case PacketID.Login:
                OnLogin((PacketLogin)args.Packet);
                return;

            case PacketID.Ping:
                OnPing();
                return;

            default:
                return;
            }
        }