ClassicCityBuilderKit 1.8.8
|
interface for all kinds of components that contain state that needs saving
Public Member Functions | |
string | SaveData () |
serializes the objects state(usually to json) and returns it | |
void | LoadData (string json) |
deserializes the serialized json data and loads the data as its new state | |
void CityBuilderCore.ISaveData.LoadData | ( | string | json | ) |
deserializes the serialized json data and loads the data as its new state
json |
Implemented in CityBuilderCore.AttackableComponent, CityBuilderCore.AttackSlowAddon, CityBuilderCore.AttackWalker, CityBuilderCore.Building, CityBuilderCore.BuildingAddon, CityBuilderCore.BuildingComponent, CityBuilderCore.CollectionComponent, CityBuilderCore.CyclicWorkerProviderComponent, CityBuilderCore.DefaultStructureManager, CityBuilderCore.DefenderAreaComponent, CityBuilderCore.DefenderComponent, CityBuilderCore.DeliveryWalker, CityBuilderCore.DiseaseAddon, CityBuilderCore.DistributionComponent, CityBuilderCore.EmploymentWalkerComponent, CityBuilderCore.EvolutionComponent, CityBuilderCore.ExtraDataBehaviour, CityBuilderCore.FireAddon, CityBuilderCore.GenerationComponent, CityBuilderCore.HomelessWalker, CityBuilderCore.HousingComponent, CityBuilderCore.HousingPlaceholderComponent, CityBuilderCore.ImmigrationWalker, CityBuilderCore.ItemEfficiencyComponent, CityBuilderCore.ItemsRetrieverComponent, CityBuilderCore.ItemsRetrieverWalker, CityBuilderCore.ItemStore, CityBuilderCore.MonumentSiteComponent, CityBuilderCore.PooledWorkerProviderComponent, CityBuilderCore.ProductionComponent, CityBuilderCore.ProductionWalkerComponent, CityBuilderCore.PurchaseWalker, CityBuilderCore.ReloadingItemsDispenser, CityBuilderCore.RiskerComponent, CityBuilderCore.RiskWalkerComponent, CityBuilderCore.RoadBlockerComponent, CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, CityBuilderCore.RoamingWalker, CityBuilderCore.ServiceEfficiencyComponent, CityBuilderCore.ServiceWalkerComponent, CityBuilderCore.SpriteRandomizerComponent, CityBuilderCore.StorageComponent, CityBuilderCore.StorageWalker, CityBuilderCore.StorageWalkerComponent, CityBuilderCore.TaskList, CityBuilderCore.TerrainModifier, CityBuilderCore.TilemapSpawner, CityBuilderCore.TimedReplacementComponent, CityBuilderCore.VariantProductionComponent, CityBuilderCore.VariantProductionWalkerComponent, CityBuilderCore.Walker, CityBuilderCore.WalkerAddon, CityBuilderCore.WalkerComponent, CityBuilderCore.Wanderer, CityBuilderCore.WanderingWalker, CityBuilderCore.WorkerWalker, CityBuilderManual.Custom.CustomBuildingComponent, CityBuilderManual.Custom.CustomBuildingTrait, CityBuilderManual.Custom.CustomDestinationWalker, CityBuilderTown.ItemConstructionComponent, CityBuilderTown.TownConstructionComponent, CityBuilderTown.TownFarmingComponent, CityBuilderTown.TownForestingComponent, CityBuilderTown.TownGatheringComponent, CityBuilderTown.TownHomeComponent, CityBuilderTown.TownManager, CityBuilderTown.TownMarketComponent, CityBuilderTown.TownProductionComponent, CityBuilderTown.TownWalker, CityBuilderTown.TownWorkComponent, CityBuilderUrban.HouseComponent, CityBuilderUrban.PickupWalker, CityBuilderUrban.RailwayComponent, CityBuilderUrban.ShopComponent, CityBuilderUrban.TornadoWalker, CityBuilderUrban.TrainWalker, and CityBuilderUrban.UrbanManager.
string CityBuilderCore.ISaveData.SaveData | ( | ) |
serializes the objects state(usually to json) and returns it
Implemented in CityBuilderCore.AttackableComponent, CityBuilderCore.AttackSlowAddon, CityBuilderCore.AttackWalker, CityBuilderCore.Building, CityBuilderCore.BuildingAddon, CityBuilderCore.BuildingComponent, CityBuilderCore.CollectionComponent, CityBuilderCore.CyclicWorkerProviderComponent, CityBuilderCore.DefaultStructureManager, CityBuilderCore.DefenderAreaComponent, CityBuilderCore.DefenderComponent, CityBuilderCore.DeliveryWalker, CityBuilderCore.DiseaseAddon, CityBuilderCore.DistributionComponent, CityBuilderCore.EmploymentWalkerComponent, CityBuilderCore.EvolutionComponent, CityBuilderCore.ExpandableBuilding, CityBuilderCore.ExtraDataBehaviour, CityBuilderCore.FireAddon, CityBuilderCore.GenerationComponent, CityBuilderCore.HomelessWalker, CityBuilderCore.HousingComponent, CityBuilderCore.HousingPlaceholderComponent, CityBuilderCore.ImmigrationWalker, CityBuilderCore.ItemEfficiencyComponent, CityBuilderCore.ItemsRetrieverComponent, CityBuilderCore.ItemsRetrieverWalker, CityBuilderCore.ItemStore, CityBuilderCore.MonumentSiteComponent, CityBuilderCore.PooledWorkerProviderComponent, CityBuilderCore.ProductionComponent, CityBuilderCore.ProductionWalkerComponent, CityBuilderCore.PurchaseWalker, CityBuilderCore.ReloadingItemsDispenser, CityBuilderCore.RiskerComponent, CityBuilderCore.RiskWalkerComponent, CityBuilderCore.RoadBlockerComponent, CityBuilderCore.RoadManagerBase, CityBuilderCore.RoadManagerBaseMulti, CityBuilderCore.RoamingWalker, CityBuilderCore.ServiceEfficiencyComponent, CityBuilderCore.ServiceWalkerComponent, CityBuilderCore.SpriteRandomizerComponent, CityBuilderCore.StorageComponent, CityBuilderCore.StorageWalker, CityBuilderCore.StorageWalkerComponent, CityBuilderCore.TaskList, CityBuilderCore.TerrainModifier, CityBuilderCore.TilemapSpawner, CityBuilderCore.TimedReplacementComponent, CityBuilderCore.VariantProductionComponent, CityBuilderCore.VariantProductionWalkerComponent, CityBuilderCore.Walker, CityBuilderCore.WalkerAddon, CityBuilderCore.WalkerComponent, CityBuilderCore.Wanderer, CityBuilderCore.WanderingWalker, CityBuilderCore.WorkerWalker, CityBuilderManual.Custom.CustomBuildingComponent, CityBuilderManual.Custom.CustomBuildingTrait, CityBuilderManual.Custom.CustomDestinationWalker, CityBuilderTown.ItemConstructionComponent, CityBuilderTown.TownConstructionComponent, CityBuilderTown.TownFarmingComponent, CityBuilderTown.TownForestingComponent, CityBuilderTown.TownGatheringComponent, CityBuilderTown.TownHomeComponent, CityBuilderTown.TownManager, CityBuilderTown.TownMarketComponent, CityBuilderTown.TownProductionComponent, CityBuilderTown.TownWalker, CityBuilderTown.TownWorkComponent, CityBuilderUrban.HouseComponent, CityBuilderUrban.PickupWalker, CityBuilderUrban.RailwayComponent, CityBuilderUrban.ShopComponent, CityBuilderUrban.TrainWalker, and CityBuilderUrban.UrbanManager.