示例#1
0
        void AcceptFight(WorldClient client)
        {
            TemporaryArenaClient arenaClient = GetClient(client);

            arenaClient.Ready = true;
            arenaClient.UpdateRegistrationStatus(false, PvpArenaStepEnum.ARENA_STEP_WAITING_FIGHT);
            arenaClient.UpdateFighterStatus(Clients);

            foreach (var aClient in Clients)
            {
                if (aClient.Ready && aClient != arenaClient)
                {
                    aClient.UpdateFighterStatus(new List <TemporaryArenaClient>()
                    {
                        aClient
                    });
                }
            }
            if (RedTeam.All(x => x.Ready) && BlueTeam.All(x => x.Ready))
            {
                StartFighting();
            }
        }