public ChunkCullingBrain(
            IGameCamera gameCamera, IHexGrid grid, MapRenderingSignals mapRenderingSignals
            )
        {
            GameCamera          = gameCamera;
            Grid                = grid;
            MapRenderingSignals = mapRenderingSignals;

            MapRenderingSignals.ChunkStartingToRefresh.Subscribe(OnChunkBeganToRefresh);
            MapRenderingSignals.ChunkFinishedRefreshing.Subscribe(chunk => ChunksRefreshing.Remove(chunk));

            MapRenderingSignals.ChunkBeingDestroyed.Subscribe(chunk => ChunksRefreshing.Remove(chunk));
        }
 public CameraFocuser(
     ICapitalCityCanon capitalCityCanon, IGameCamera gameCamera,
     IPossessionRelationship <IHexCell, ICity> cityLocationCanon,
     IPossessionRelationship <ICivilization, IUnit> unitPossessionCanon,
     IUnitPositionCanon unitPositionCanon, ICanBuildCityLogic canBuildCityLogic
     )
 {
     CapitalCityCanon    = capitalCityCanon;
     GameCamera          = gameCamera;
     CityLocationCanon   = cityLocationCanon;
     UnitPossessionCanon = unitPossessionCanon;
     UnitPositionCanon   = unitPositionCanon;
     CanBuildCityLogic   = canBuildCityLogic;
 }
Beispiel #3
0
        public UIStateMachineBrain(
            [Inject(Id = "UI Animator")] Animator animator, CompositeCitySignals compositeCitySignals,
            CompositeUnitSignals compositeUnitSignals, PlayerSignals playerSignals, IGameCamera gameCamera,
            DescriptionTooltip descriptionTooltip, CellHoverDisplay cellHoverDisplay,
            CivilizationSignals civSignals, CoreSignals coreSignals, UnitSignals unitSignals
            )
        {
            Animator             = animator;
            CompositeCitySignals = compositeCitySignals;
            CompositeUnitSignals = compositeUnitSignals;
            PlayerSignals        = playerSignals;
            GameCamera           = gameCamera;
            DescriptionTooltip   = descriptionTooltip;
            CellHoverDisplay     = cellHoverDisplay;
            CivSignals           = civSignals;
            UnitSignals          = unitSignals;

            coreSignals.TurnBegan.Subscribe(OnTurnBegan);
        }
Beispiel #4
0
        public CitySummaryManager(
            CitySummaryDisplay summaryPrefab, ICityFactory cityFactory,
            DiContainer container, ICityUIConfig cityUIConfig, IGameCamera gameCamera,
            [Inject(Id = "City Summary Container")] RectTransform citySummaryContainer,
            CitySignals citySignals, IExplorationCanon explorationCanon,
            IPossessionRelationship <IHexCell, ICity> cityLocationCanon
            )
        {
            SummaryPrefab        = summaryPrefab;
            CityFactory          = cityFactory;
            Container            = container;
            CityUIConfig         = cityUIConfig;
            GameCamera           = gameCamera;
            CitySummaryContainer = citySummaryContainer;
            ExplorationCanon     = explorationCanon;
            CityLocationCanon    = cityLocationCanon;

            citySignals.BeingDestroyed.Subscribe(OnCityBeingDestroyed);
        }
 public void InjectDependencies(IGameCamera gameCamera)
 {
     GameCamera = gameCamera;
 }