ClassicCityBuilderKit 1.9.1
|
spawns instances of a prefab up to a maximum number
spawn position is randomly selected either from all tiles or just one specific tile on a tilemap
tile positions are selected at the start for performance reasons so changing the tilemap at runtime wont have an effect on the spawner
Classes | |
class | StructureSpawnerData |
class | StructureSpawnerInstanceData |
Public Member Functions | |
override string | SaveData () |
serializes the objects state(usually to json) and returns it | |
override void | LoadData (string json) |
deserializes the serialized json data and loads the data as its new state | |
![]() | |
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 | |
TileBase | Tile |
int | Maximum |
float | Interval |
GameObject | Prefab |
![]() | |
string | Key |
Additional Inherited Members | |
![]() |
|
inline |
deserializes the serialized json data and loads the data as its new state
json |
Implements CityBuilderCore.ISaveData.
|
inline |
serializes the objects state(usually to json) and returns it
Implements CityBuilderCore.ISaveData.