Loading...
Searching...
No Matches
CityBuilderCore.Wanderer Class Reference

Detailed Description

moves to a random adjacent point on the map then waits a little and repeats
can be used for decorations and animals, used for the huntable blobs in Three

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

Inheritance diagram for CityBuilderCore.Wanderer:
CityBuilderCore.ISaveData

Classes

class  WandererData
 

Public Types

enum  WandererState { Waiting = 0 , Wandering = 10 }
 

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
 

Public Attributes

TileBase[] Tiles
 
string Tilemap
 
Transform Pivot
 
float Interval
 
float Speed
 
string Key
 
IntEvent StateChanged
 

Properties

float TimePerStep [get]
 

Member Function Documentation

◆ LoadData()

void CityBuilderCore.Wanderer.LoadData ( string json)
inline

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

Parameters
json

Implements CityBuilderCore.ISaveData.

◆ SaveData()

string CityBuilderCore.Wanderer.SaveData ( )
inline

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

Returns
serialized save data

Implements CityBuilderCore.ISaveData.