Loading...
Searching...
No Matches
CityBuilderCore.ISaveData Interface Reference

Detailed Description

interface for all kinds of components that contain state that needs saving

Inheritance diagram for CityBuilderCore.ISaveData:
CityBuilderCore.Building CityBuilderCore.BuildingAddon CityBuilderCore.ExtraDataBehaviour CityBuilderCore.IBuilding CityBuilderCore.IBuildingComponent CityBuilderCore.IRoadManager CityBuilderCore.IStructureManager CityBuilderCore.ItemStore CityBuilderCore.ReloadingItemsDispenser CityBuilderCore.Walker CityBuilderCore.WalkerAddon CityBuilderCore.Wanderer

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
 

Member Function Documentation

◆ LoadData()

void CityBuilderCore.ISaveData.LoadData ( string json)

deserializes the serialized json data and loads the data as its new state

Parameters
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.

◆ SaveData()

string CityBuilderCore.ISaveData.SaveData ( )

serializes the objects state(usually to json) and returns it

Returns
serialized save data

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.