public static void PrepareFactory(StructureRepository structureRepository, GridStructure grid, IPlacementManager placementManager, IResourceManager resourceManager) { singleStructurePlacementHelper = new SingleStructurePlacementHelper(structureRepository, grid, placementManager, resourceManager); structureDemolitionHelper = new StructureDemolitionHelper(structureRepository, grid, placementManager, resourceManager); roadStructurePlacementHelper = new RoadPlacementModificationHelper(structureRepository, grid, placementManager, resourceManager); zonePlacementHelper = new ZonePlacementHelper(structureRepository, grid, placementManager, Vector3.zero, resourceManager); }
public static void PrepareFactory(StructureRepository structureRepository, GridStructure grid, IPlacementManager placementManager, IResourceManager resourceManager) { _manufacturerPlacementHelper = new ManufacturerPlacementHelper(structureRepository, grid, placementManager, resourceManager); _singleStructurePlacementHelper = new SingleStructurePlacementHelper(structureRepository, grid, placementManager, resourceManager); _structureRemovalHelper = new StructureRemovalHelper(structureRepository, grid, placementManager, resourceManager); _strutureUpgradeHelper = new StructureUpgradeHelper(structureRepository, grid, placementManager, resourceManager); _roadStructurePlacementHelper = new RoadPlacementModificationHelper(structureRepository, grid, placementManager, resourceManager); _zonePlacementHelper = new ZonePlacementHelper(structureRepository, grid, placementManager, Vector3.zero, resourceManager); }
public void PrepareBuildingManager(Type classType) { _structureModificationHelper = StructureModificationFactory.GetHelper(classType); }