ctac.AuthGameCommand.Execute C# (CSharp) Method

Execute() public method

public Execute ( ) : void
return void
        public override void Execute()
        {
            if (game == null)
            {
                return;
            }
            socket.Disconnect(socketKey.clientId, "matchmaker");
            //update the game list so once we're authed we can find and join it
            game.isCurrent = true;
            gamelist.AddOrUpdateGame(socketKey.clientId, game);
            debug.Log("Current game " + game.id, socketKey);

            //add game to list of components for use
            components.componentList.Add(game.component);

            var player = playersModel.GetByClientId(socketKey.clientId);
            socket.Request(socketKey.clientId, "game", "token", player.token);
        }
AuthGameCommand