Loading...
Searching...
No Matches
CityBuilderUrban.UrbanManager Class Reference

Detailed Description

manages all the custom global logic in the urban demo

https://citybuilder.softleitner.com/manual/urban

Inheritance diagram for CityBuilderUrban.UrbanManager:
CityBuilderCore.ExtraDataBehaviour CityBuilderCore.KeyedBehaviour CityBuilderCore.ISaveData CityBuilderCore.IKeyed

Classes

class  RunningCost
 

Public Member Functions

void RemoveRunningCost ()
 
void VisualizeMoney (Vector3 position, int quantity)
 
Vector2Int GetRailwayEntry ()
 
Vector2Int GetRailwayExit ()
 
BuildingComponentPath< ShopComponentGetShopPath (BuildingReference home, PathType pathType, object pathTag=null)
 
void SpawnTornado ()
 
override void LoadData (string json)
 deserializes the serialized json data and loads the data as its new state
 
override string SaveData ()
 serializes the objects state(usually to json) and returns it
 
- Public Member Functions inherited from CityBuilderCore.ExtraDataBehaviour
void LoadData (string json)
 deserializes the serialized json data and loads the data as its new state
 
string SaveData ()
 serializes the objects state(usually to json) and returns it
 

Public Attributes

ManualTornadoWalkerSpawner Tornados
 
RunningCost[] Costs
 
Transform[] Entries
 
Transform[] Exits
 
MoneyVisual MoneyVisual
 
- Public Attributes inherited from CityBuilderCore.KeyedBehaviour
string Key
 

Additional Inherited Members

- Properties inherited from CityBuilderCore.IKeyed

Member Function Documentation

◆ LoadData()

override void CityBuilderUrban.UrbanManager.LoadData ( string json)

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

Parameters
json

Implements CityBuilderCore.ISaveData.

◆ SaveData()

override string CityBuilderUrban.UrbanManager.SaveData ( )

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

Returns
serialized save data

Implements CityBuilderCore.ISaveData.