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); } }
public ServerError(EServerErrorCode errorCode) { this.errorCode = errorCode; }
public ServerError(Packet _packet) : base(_packet) { errorCode = (EServerErrorCode)_packet.ReadInt(); }