public JournalOutService(IGDetailPlanetService gDetailPlanetService, IGGeometryPlanetService geometryPlanetService, ISystemService systemService, IUTaskService uTaskService, IUReportService uReportService, IUSpyService uSpyService, IMothershipService mothershipService, ISpriteImages spriteImages, ISynchronizer synchronizer, IMapAdressService mapAdressService, IUMotherJumpService motherJumpService, IGameUserService gameUserService, IStoreService storeService, ILocalizerService localizer) { _gDetailPlanetService = gDetailPlanetService; _geometryPlanetService = geometryPlanetService; _systemService = systemService; _uTaskService = uTaskService; _uReportService = uReportService; _uSpyService = uSpyService; _mothershipService = mothershipService; _spriteImages = spriteImages; _synchronizer = synchronizer; _mapAdressService = mapAdressService; _motherJumpService = motherJumpService; _gameUserService = gameUserService; _storeService = storeService; _localizer = localizer; }
public CommandCenter(IMothershipService mothershipService, IGDetailPlanetService gDetailPlanetService, ISynchronizer synchronizer, IStoreService storeService, IGameUserService gameUserService, IUMotherJumpService motherJumpService, ITurels turels) : base(mothershipService, gDetailPlanetService, synchronizer, storeService, gameUserService, motherJumpService) { _turels = turels; }
public TransferResourceService(IStorage storage, IGDetailPlanetService planetService, IMothershipService mother, ISynchronizer synchronizer, IStorageResourcesService storageResourcesService, IUMotherJumpService motherJumpService) { _storage = storage; _planetService = planetService; _mother = mother; _synchronizer = synchronizer; _storageResourcesService = storageResourcesService; _motherJumpService = motherJumpService; }
public IndustrialComplex(IMothershipService mothershipService, IGDetailPlanetService gDetailPlanetService, ISynchronizer synchronizer, IStoreService storeService, IGameUserService gameUserService, IUMotherJumpService motherJumpService, IStorage storage, IExtractionModule extractionModule, IEnergyConverter energyConverter) : base( mothershipService, gDetailPlanetService, synchronizer, storeService, gameUserService, motherJumpService) { _storage = storage; _extractionModule = extractionModule; _energyConverter = energyConverter; }
public Laboratory(IMothershipService mothershipService, IGDetailPlanetService gDetailPlanetService, ISynchronizer synchronizer, IStoreService storeService, IGameUserService gameUserService, IUMotherJumpService motherJumpService, ILaboratoryBuild laboratoryBuild) : base(mothershipService, gDetailPlanetService, synchronizer, storeService, gameUserService, motherJumpService) { _laboratoryBuild = laboratoryBuild; }
public Shipyard(IMothershipService mothershipService, IGDetailPlanetService gDetailPlanetService, ISynchronizer synchronizer, IStoreService storeService, IGameUserService gameUserService, IUMotherJumpService motherJumpService, ISpaceShipyard spaceShipyard) : base(mothershipService, gDetailPlanetService, synchronizer, storeService, gameUserService, motherJumpService) { _spaceShipyard = spaceShipyard; }
protected BuildCollection(IMothershipService mothershipService, IGDetailPlanetService gDetailPlanetService, ISynchronizer synchronizer, IStoreService storeService, IGameUserService gameUserService, IUMotherJumpService motherJumpService) { _mothershipService = mothershipService; _gDetailPlanetService = gDetailPlanetService; _synchronizer = synchronizer; _storeService = storeService; _gameUserService = gameUserService; _motherJumpService = motherJumpService; }
public TaskRunner(IServiceProvider svp) { _svp = svp; _uTaskService = _svp.GetService <IUTaskService>(); _uReportService = _svp.GetService <IUReportService>(); _gDetailPlanetService = _svp.GetService <IGDetailPlanetService>(); _gameUserService = _svp.GetService <IGameUserService>(); _storeService = _svp.GetService <IStoreService>(); _allianceService = _svp.GetService <IAllianceService>(); _motherRunner = _svp.GetService <IMotherRunner>(); _confederationService = _svp.GetService <IConfederationService>(); _mothershipService = _svp.GetService <IMothershipService>(); _motherJumpService = _svp.GetService <IUMotherJumpService>(); _planetRunner = _svp.GetService <IPlanetRunner>(); _demonLog = _svp.GetService <IDemonAzureLogItem>(); _dbProvider = _svp.GetService <IDbProvider>(); }
public EstateOwnService(IShipyard shipyard, ILaboratory laboratory, IIndustrialComplex industrialComplex, ICommandCenter commandCenter, ISynchronizer synchronizer, IMothershipService mothershipService, IUMotherJumpService motherJumpService, IGameUserService gameUserService, IStoreService storeService, IGDetailPlanetService detailPlanetService, ILocalizerService localizer) { _shipyard = shipyard; _laboratory = laboratory; _industrialComplex = industrialComplex; _commandCenter = commandCenter; _synchronizer = synchronizer; _mothershipService = mothershipService; _motherJumpService = motherJumpService; _gameUserService = gameUserService; _storeService = storeService; _detailPlanetService = detailPlanetService; _localizer = localizer; }
public UserMothershipDataModel UserMothership(IDbConnection connection, UserMothershipDataModel mother, UserPremiumWorkModel userPremium, IMothershipService motherService, IUMotherJumpService motherJump) { return(_motherRunner.RunUser(connection, mother, userPremium, motherService, motherJump)); }
public MainGameHub(IServiceProvider svp) { #region Main _svp = svp; _hubCache = _svp.GetService <IMainGameHubLocalStorageCache>(); #endregion #region Main User _gameUserService = _svp.GetService <IGameUserService>(); _allianceService = _svp.GetService <IAllianceService>(); _channelService = (ChannelService)_svp.GetService <IChannelService>(); _mothershipService = _svp.GetService <IMothershipService>(); _motherJumpService = _svp.GetService <IUMotherJumpService>(); _storeService = _svp.GetService <IStoreService>(); #endregion #region World _gameTypeService = _svp.GetService <IGameTypeService>(); _gGeometryPlanetService = _svp.GetService <IGGeometryPlanetService>(); _gDetailPlanetService = _svp.GetService <IGDetailPlanetService>(); _gSectorsService = _svp.GetService <IGSectorsService>(); _mapInfoService = _svp.GetService <IMapInfoService>(); _systemService = _svp.GetService <ISystemService>(); _worldService = _svp.GetService <IWorldService>(); _gUserBookmarkService = (GUserBookmarkService)_svp.GetService <IGUserBookmarkService>(); #endregion #region builds //collections _commandCenter = _svp.GetService <ICommandCenter>(); _industrialComplex = _svp.GetService <IIndustrialComplex>(); _laboratory = _svp.GetService <ILaboratory>(); _shipyard = _svp.GetService <IShipyard>(); //items _energyConverter = _svp.GetService <IEnergyConverter>(); _extractionModule = _svp.GetService <IExtractionModule>(); _extractionModule = _svp.GetService <IExtractionModule>(); _spaceShipyard = _svp.GetService <ISpaceShipyard>(); _storage = _svp.GetService <IStorage>(); _turels = _svp.GetService <ITurels>(); //common _unit = _svp.GetService <IUnit>(); _storageResources = _svp.GetService <IStorageResourcesService>(); _transferResourceService = _svp.GetService <ITransferResourceService>(); #endregion #region Global User _estateOwnService = _svp.GetService <IEstateOwnService>(); _synchronizer = _svp.GetService <ISynchronizer>(); _estateListService = _svp.GetService <IEstateListService>(); _journalOutService = _svp.GetService <IJournalOutService>(); _gameRunner = _svp.GetService <IGameRunner>(); _dbProvider = _svp.GetService <IDbProvider>(); #endregion #region Confederation _confederationService = _svp.GetService <IConfederationService>(); #endregion }
public UserMothershipDataModel RunUser(IDbConnection connection, UserMothershipDataModel mother, UserPremiumWorkModel userPremium, IMothershipService motherService, IUMotherJumpService motherJump) { if (mother == null) { return(null); } motherJump.SinchronizeByMotherId(connection, mother.Id); FixProgreses(mother, userPremium); return(motherService.Update(connection, mother)); }
public void PushDemon(IDbConnection connection, IMothershipService motherService, IUMotherJumpService motherJumpService, IStoreService storeService) { var curTime = UnixTime.UtcNow(); if (curTime - LAST_DEMON_RUNTIME < MIN_DEMON_DELAY_SECOND) { return; } var minItemTime = curTime - MIN_DELAY_TO_UPDATE; LAST_DEMON_RUNTIME = curTime; var motherIds = motherService.GetAllMothers(connection).Where(i => i.Id > 1000 && i.LastUpgradeProductionTime < minItemTime).Select(i => i.Id).ToList(); if (!motherIds.Any()) { return; } foreach (var motherId in motherIds) { var mother = motherService.GetMother(connection, motherId); if (_needUpdate(mother)) { var prem = storeService.GetPremiumWorkModel(connection, motherId); RunUser(connection, mother, prem, motherService, motherJumpService); } } //Console.WriteLine("_mothershipService.SaveMother"); }