Beispiel #1
0
        public async Task SetGame(string game)
        {
            Game = game;
            await Broadcast(new DefaultGameChanged()
            {
                Game = game
            });

            await MatchMaker.OnServerGameChanged(game);
        }
        public async Task SetGame(string game)
        {
            Game = game;
            await Broadcast(new DefaultGameChanged()
            {
                Game = game
            });

            await MatchMaker.OnServerGameChanged(game);

            await Task.WhenAll(Battles.Values.Where(x => x.IsDefaultGame).Select(x => x.SwitchGame(game)));
        }