コード例 #1
0
 public RoundInstance(Competition comp, TournamentRound round, Round rd, TournamentInstance ti)
 {
     CurrentRound  = round;
     Competition   = comp;
     GameInstances = new List <GameInstance>();
     Round         = rd;
     TInstance     = ti;
 }
コード例 #2
0
 public TournamentResponse(string code, TournamentInstance ti)
     : base(code)
 {
     id           = ti.Competition.Id;
     name         = ti.Competition.Name;
     start        = ti.Competition.Start;
     status       = ti.Competition.Status;
     participants = ti.Competition.ParticipantNumber;
     rounds       = ti.Rounds;
     teams        = ti.Teams;
 }
コード例 #3
0
        public static void Reload()
        {
            Platform.Load();
            List <Competition> compet = Platform.DBManager.Competitions.ToList();

            foreach (Competition cpt in compet)
            {
                if (Tournaments.Where(x => x.Competition.Id == cpt.Id).Count() == 0)
                {
                    TournamentInstance tour = new TournamentInstance(cpt);
                    Tournaments.Add(tour);
                    jobManager.ExecuteJob(tour);
                }
            }
        }