コード例 #1
0
        protected override async Task GameOver()
        {
            var winners = Battle.GetTeam(Battle.GetWinner());
            var losers  = winners.First().battle.GetTeam(winners.First().enemies);

            winners.ConvertAll(s => (PlayerFighter)s).ForEach(async p => await ServerGames.UserWonPvP(UserAccountProvider.GetById(p.Id), lobbyChannel, winners.Count, losers.Count));

            _ = WriteGameOver();
            await Task.CompletedTask;
        }