Пример #1
0
        private void m_Listener_OnReceiveEvent(PacketStream P, CityClient Client)
        {
            byte ID = (byte)P.ReadByte();

            switch (ID)
            {
            case 0x00:
                PacketHandlers.HandleCharacterCreate(P, Client);
                break;

            case 0x01:
                PacketHandlers.HandleClientKeyReceive(P, ref Client);
                break;
            }
        }