예제 #1
0
        private void OnServerErrorResponse(int toClient, EServerErrorCode errorCode)
        {
            using (Packet _packet = new Packet((int)PacketTypes.ServerPackets.SERVER_ERROR))
            {
                ServerError serverErrorObj = new ServerError(errorCode);
                serverErrorObj.ToPacket(_packet);

                SendTCPData(toClient, _packet);
            }
        }
예제 #2
0
 public ServerError(EServerErrorCode errorCode)
 {
     this.errorCode = errorCode;
 }
예제 #3
0
 public ServerError(Packet _packet) : base(_packet)
 {
     errorCode = (EServerErrorCode)_packet.ReadInt();
 }