Ejemplo n.º 1
0
        public static void Simulate()
        {
            SimulateRound(ClubStatus.Round);
            ClubStatus.Round++;
            if (ClubStatus.Round < 39)
            {
                ClubStatus.CurrentDate.AddDays(7);
            }
            //ClubStatus.CurrentDate = Convert.ToDateTime(ScheduleRepo.GetDate(ClubStatus.Round));
            else
            {
                ClubStatus.CurrentDate = ClubStatus.SeasonEnd;
            }

            if (ClubStatus.RoundsToJunior == 0)
            {
                var country = CountryRepo.GetCountry(ClubStatus.JuniorCountry);
                Scout.Send(ClubStatus.Junior, country);
                ClubStatus.RoundsToJunior--;
            }
            else if (ClubStatus.RoundsToJunior > 0)
            {
                ClubStatus.RoundsToJunior--;
            }
            ClubStatus.SerializeSave();
        }
Ejemplo n.º 2
0
 public static void NextSeason()
 {
     Contract();
     ClubStatus.Round = ClubStatus.LeagueId == 2 ? 5 : 1;
     ClubStatus.SeasonEnd.AddYears(1);
     ClubStatus.SeasonStart.AddYears(1);
     ClubStatus.CurrentDate = ClubStatus.LeagueId == 2 ? new DateTime(ClubStatus.SeasonStart.Year, 8, 19) : new DateTime(ClubStatus.SeasonStart.Year, 7, 19);
     NewSchedule(1);
     NewSchedule(2);
     PlayerRepo.UpdateOve();
     Regen();
     Retire();
     ClubRepo.Reset();
     PlayerRepo.UpdateVal();
     ClubStatus.SerializeSave();
 }