protected override void OnInitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer) { _gameEffectService = serviceContainer.GetService <IGameEffectService>(); _gameAudioService = serviceContainer.GetService <IGameAudioService>(); _gameStateService = serviceContainer.GetService <IGameStateService>(); _gameConfigService = serviceContainer.GetService <IGameConfigService>(); _gameResourceService = serviceContainer.GetService <IGameResourceService>(); _gameConstStateService = serviceContainer.GetService <IGameConstStateService>(); _gameCollision2DService = serviceContainer.GetService <IGameCollision2DService>(); _gameUnitService = serviceContainer.GetService <IGameUnitService>(); }
public override void InitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer) { base.InitReference(serviceContainer, mgrContainer); _networkService = serviceContainer.GetService <INetworkService>(); SimulatorServiceService = serviceContainer.GetService <ISimulatorService>(); _uiService = serviceContainer.GetService <IUIService>(); _gameEffectService = serviceContainer.GetService <IGameEffectService>(); _gameAudioService = serviceContainer.GetService <IGameAudioService>(); _gameStateService = serviceContainer.GetService <IGameStateService>(); _gameConfigService = serviceContainer.GetService <IGameConfigService>(); _gameViewService = serviceContainer.GetService <IGameViewService>(); _gameResourceService = serviceContainer.GetService <IGameResourceService>(); }
protected override void OnInitReference(IServiceContainer serviceContainer, IManagerContainer mgrContainer) { _gameStateService = serviceContainer.GetService <IGameStateService>(); _gameConfigService = serviceContainer.GetService <IGameConfigService>(); _gameResourceService = serviceContainer.GetService <IGameResourceService>(); }
public void Init(IGameResourceService resourceService) { _resourcePresenter = new ResourceViewPresenter(resourceService.Data); _resourcePresenter.SetView(_resourceView); }
public ChallengeController(IGameResourceService gameService, ILogger <ChallengeController> logger) { _gameService = gameService; _logger = logger; }