Ejemplo n.º 1
0
        public BuildingFactory(
            IPossessionRelationship <ICity, IBuilding> possessionCanon, IWorkerSlotFactory workerSlotFactory,
            CitySignals citySignals
            )
        {
            PossessionCanon   = possessionCanon;
            WorkerSlotFactory = workerSlotFactory;

            citySignals.BeingDestroyed.Subscribe(OnCityBeingDestroyed);
        }
Ejemplo n.º 2
0
 public void InjectDependencies(
     IWorkerSlotFactory workerSlotFactory, ICellModificationLogic cellModificationLogic,
     IMapRenderConfig renderConfig, HexCellSignals cellSignals, IGeometry2D geometry2D,
     IHexCellShaderData shaderData, IMemoryPool <MapChunk> mapChunkPool,
     IHexMeshFactory hexMeshFactory
     )
 {
     WorkerSlotFactory     = workerSlotFactory;
     CellModificationLogic = cellModificationLogic;
     RenderConfig          = renderConfig;
     CellSignals           = cellSignals;
     Geometry2D            = geometry2D;
     ShaderData            = shaderData;
     MapChunkPool          = mapChunkPool;
     HexMeshFactory        = hexMeshFactory;
 }