Пример #1
0
 public LoginToLobbyResponseMessage(IPEndPoint gameServer, int innergameServerPort, GameServerUserToken token, GameServerID gameServerID)
 {
     this.GameServer          = gameServer;
     this.InnergameServerPort = innergameServerPort;
     this.Token        = token;
     this.GameServerID = gameServerID;
 }
        public override void PostRead()
        {
            base.PostRead();

            this.Token = new GameServerUserToken
            {
                Credential = this.Args[0]
            };
        }
Пример #3
0
        public override void PostRead()
        {
            base.PostRead();

            this.GameServer = new IPEndPoint(
                address: IPAddress.Parse(this.Args[0]),
                port: int.Parse(this.Args[1]));
            this.InnergameServerPort = int.Parse(this.Args[2]);
            this.Token = new GameServerUserToken
            {
                Credential = this.Args[3]
            };
            this.GameServerID = new GameServerID {
                ID = Guid.Parse(this.Args[4])
            };
        }
 public LoginToGameServerRequest(GameServerUserToken token)
 {
     this.Token = token;
 }