예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 public void PrepareBuildingManager(Type classType)
 {
     _structureModificationHelper = StructureModificationFactory.GetHelper(classType);
 }