示例#1
0
 public void ImportFloorPlan(string filePath)
 {
     LocalFloorPlan = OnImportFloorPlan?.Invoke(filePath);
     People         = OnPrepareSimulation?.Invoke(LocalFloorPlan);
     TheMainWindow.FloorPlanVisualiserControl.ImplementFloorPlan(LocalFloorPlan, People);
     OnBuildingPlanSuccessfullLoaded?.Invoke();
     BuildingHasBeenChanged = true;
 }
示例#2
0
 public void CreateFloorplan(int width, int height, int floorAmount, string description)
 {
     if (_floorplanHasBeenCreated)
     {
         DisplayGeneralMessage("A building has already been made.");
         return;
     }
     LocalFloorPlan = OnNewFloorPlan?.Invoke(width, height, floorAmount, description);
     TheMainWindow.FloorPlanVisualiserControl.ImplementFloorPlan(LocalFloorPlan, People);
     _floorplanHasBeenCreated = true;
     OnBuildingPlanSuccessfullLoaded?.Invoke();
 }