コード例 #1
0
        public TCPClientPacketService()
        {
            SendPackets.Add(typeof(S0001Authenticate), 0x0001);
            SendPackets.Add(typeof(S0003Chat), 0x0003);
            SendPackets.Add(typeof(S0005TimeRequest), 0x0005);

            RecvPackets.Add(0x0006, typeof(R0006TimeResponse));
        }
コード例 #2
0
        public TCPServerPacketService()
        {
            SendPackets.Add(typeof(S0006TimeResponse), 0x0006);

            RecvPackets.Add(0x0001, typeof(R0001Authenticate));
            RecvPackets.Add(0x0003, typeof(R0003Chat));
            RecvPackets.Add(0x0005, typeof(R0005TimeRequest));
        }