ClassicCityBuilderKit 1.8.8
|
cyclic spawner with individual cooldowns for walkers and a spawner cooldown between walkers
T | concrete type of the walker |
T | : | Walker |
Public Member Functions | |
void | Update (float multiplier=1f) |
PooledWalkerSpawnerData | SaveData () |
void | LoadData (PooledWalkerSpawnerData data) |
Public Member Functions inherited from CityBuilderCore.WalkerSpawner< T > | |
void | Initialize (Transform root, Func< T, bool > onSpawning=null, Action< T > onFinished=null) |
void | Initialize (IBuilding building, Func< T, bool > onSpawning=null, Action< T > onFinished=null) |
void | Initialize< Q, P > (Transform root, MonoBehaviour owner, Func< Q > preparer, Func< Q, P > planner, Action< T, P > spawner=null, Action< T > finished=null) |
void | Initialize< Q, P > (IBuilding building, MonoBehaviour owner, Func< Q > preparer, Func< Q, P > planner, Action< T, P > spawner=null, Action< T > finished=null) |
void | Integrate (T walker, Action< T > onSpawned=null) |
Public Attributes | |
float | WalkerDowntime |
float | SpawnerDowntime |
Public Attributes inherited from CityBuilderCore.WalkerSpawner< T > | |
T | Prefab |
int | Count = 1 |
Protected Member Functions | |
override void | initialize () |
Protected Member Functions inherited from CityBuilderCore.WalkerSpawner< T > | |
void | clearWalkers () |
T | reloadActive () |
void | spawn (Action< T > onSpawned=null, Vector2Int? start=null) |
void | spawnPrepared (MonoBehaviour owner, Func< object > preparer, Func< object, object > planner, Action< T, object > spawner=null, Action< T > onSpawned=null, Vector2Int? start=null) |
Additional Inherited Members | |
Protected Attributes inherited from CityBuilderCore.WalkerSpawner< T > | |
List< T > | _currentWalkers = new List<T>() |
Transform | _root |
IBuilding | _building |
Properties inherited from CityBuilderCore.WalkerSpawner< T > | |
bool | HasWalker [get] |
whether another walker can be spawned | |
IReadOnlyList< T > | CurrentWalkers [get] |
|
inlineprotectedvirtual |
Reimplemented from CityBuilderCore.WalkerSpawner< T >.