Loading...
Searching...
No Matches
CityBuilderCore.ManualWalkerSpawner< T > Class Template Reference

Detailed Description

walker spawner that does not spawn on its own

Template Parameters
Tconcrete type of the walker
Type Constraints
T :Walker 
Inheritance diagram for CityBuilderCore.ManualWalkerSpawner< T >:
CityBuilderCore.WalkerSpawner< T >

Public Member Functions

void Spawn (Action< T > onSpawned=null, Vector2Int? start=null)
 
void Spawn< Q, P > (MonoBehaviour owner, Func< Q > preparer, Func< Q, P > planner, Action< T, P > spawner=null, Action< T > onSpawned=null, Vector2Int? start=null)
 
ManualWalkerSpawnerData SaveData ()
 
void LoadData (ManualWalkerSpawnerData 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)
 

Additional Inherited Members

- Public Attributes inherited from CityBuilderCore.WalkerSpawner< T >
Prefab
 
int Count = 1
 
- Protected Member Functions inherited from CityBuilderCore.WalkerSpawner< T >
virtual void initialize ()
 
void clearWalkers ()
 
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)
 
- 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]