Exemple #1
0
 public BuildingManager(GridStructure grid, IPlacementManager placementManager, StructureRepository structureRepository, IResourceManager resourceManager)
 {
     _grid = grid;
     this._placementManager    = placementManager;
     this._structureRepository = structureRepository;
     StructureModificationFactory.PrepareFactory(structureRepository, _grid, placementManager, resourceManager);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 public void PrepareBuildingManager(Type classType)
 {
     _structureModificationHelper = StructureModificationFactory.GetHelper(classType);
 }