//Save Load Building Controller .cs //For Saving BuildingControllerData PullAllVarFromBuildingController() { BuildingControllerData res = new BuildingControllerData(); res._foodSources = Control.FoodSources; res._workOpenPos = Control.WorkOpenPos; res._housesWithSpace = Control.HousesWithSpace; res._religiousBuilds = Control.ReligiousBuilds; res._chillBuilds = Control.ChillBuilds; res._wayBuilds = Control.WayBuilds; res._isfoodSourceChange = Control.IsfoodSourceChange; res._isWorkChanged = Control.AreNewWorkPos; res._isHouseSpaceChanged = Control.IsNewHouseSpace; res._isReligionChanged = Control.IsNewReligion; res.IsChillChanged = Control.IsNewChill; res.DispatchManager1 = Control.DispatchManager1; res.DockManager1 = Control.DockManager1; res.ShipManager1 = Control.ShipManager1; res._GameTime = Program.gameScene.GameTime1; res.GameTimePeople = Program.gameScene.GameTimePeople; res._GameController = Program.gameScene.GameController1; res.TypeOfGame = Program.TypeOfGame; return(res); }
public void Save() { BuildingControllerData local = PullAllVarFromBuildingController(); Control.Registro.ResaveAllBuildings(); BuildingData = new BuildingData(Control.Registro.AllRegFile, local); XMLSerie.WriteXMLBuilding(BuildingData); }
public BuildingData(List <RegFile> all, BuildingControllerData BuildingControllerDataP) { _all = all; BuildingControllerData = BuildingControllerDataP; }