Пример #1
0
        public RoutineScoresData(PoolCreator.PoolKey poolKey, PoolCreator.PoolData poolData)
        {
            if (poolKey.round == PoolCreator.ERound.Max)
            {
                return;
            }

            Division = poolKey.division;
            Round    = poolKey.round;

            foreach (PoolCreator.RegisteredPlayer judge in poolData.judgesData.judgesEx)
            {
                ExResults.Add(new ExData(judge));
            }

            foreach (PoolCreator.RegisteredPlayer judge in poolData.judgesData.judgesAi)
            {
                AIResults.Add(new AIData(judge));
            }

            foreach (PoolCreator.RegisteredPlayer judge in poolData.judgesData.judgesDiff)
            {
                DiffResults.Add(new DiffData(judge));
            }
        }
Пример #2
0
        public JudgeData(int id, PoolCreator.PoolKey poolKey, PoolCreator.JudgesData judgesData)
        {
            Id       = id;
            Division = poolKey.division;
            switch (poolKey.round)
            {
            case PoolCreator.ERound.Finals:
                Round = "Finals";
                break;

            case PoolCreator.ERound.Semifinals:
                Round = "Semifinals";
                break;

            case PoolCreator.ERound.Quarterfinals:
                Round = "Quaterfinals";
                break;

            case PoolCreator.ERound.Prelims:
                Round = "Prelims";
                break;
            }
            Pool = poolKey.pool;

            foreach (PoolCreator.RegisteredPlayer judge in judgesData.judgesAi)
            {
                AIJudgeIds.Add(PoolCreator.TournamentData.FindLisaHelperNameId(judge));
            }

            foreach (PoolCreator.RegisteredPlayer judge in judgesData.judgesEx)
            {
                ExJudgeIds.Add(PoolCreator.TournamentData.FindLisaHelperNameId(judge));
            }

            foreach (PoolCreator.RegisteredPlayer judge in judgesData.judgesDiff)
            {
                DiffJudgeIds.Add(PoolCreator.TournamentData.FindLisaHelperNameId(judge));
            }
        }