Ejemplo n.º 1
0
 public static void Init(IConfigurationRepository configurationRepository, ICurrencyRepository currencyRepository, ICitizenService citizenService)
 {
     CurrentDay        = configurationRepository.GetCurrentDay();
     Gold              = currencyRepository.Gold;
     LastDayChangeTime = configurationRepository.GetLastDayChangeTime();
     ActivePlayers     = citizenService.GetActivePlayerCount();
     Initialized       = true;
 }