public BuildingManager(GridStructure grid, IPlacementManager placementManager, StructureRepository structureRepository, IResourceManager resourceManager) { _grid = grid; this._placementManager = placementManager; this._structureRepository = structureRepository; StructureModificationFactory.PrepareFactory(structureRepository, _grid, placementManager, resourceManager); }
public BuildingManager(int cellSize, int width, int length, IPlacementManager placementManager, StructureRepository structureRepository, IResourceManager resourceManager) { this.grid = new GridStructure(cellSize, width, length); this.placementManager = placementManager; this.structureRepository = structureRepository; StructureModificationFactory.PrepareFactory(structureRepository, grid, placementManager, resourceManager); }
public void PrepareBuildingManager(Type classType) { _structureModificationHelper = StructureModificationFactory.GetHelper(classType); }