walker spawner that does not spawn on its own
- Template Parameters
-
| T | concrete type of the walker |
|
|
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) |
| |
|
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) |
| |
|
|
T | Prefab |
| |
|
int | Count = 1 |
| |
|
virtual void | initialize () |
| |
|
virtual void | clearWalkers () |
| |
|
virtual void | clearWalkers (List< T > walkers) |
| |
|
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) |
| |
|
List< T > | _currentWalkers = new List<T>() |
| |
|
Transform | _root |
| |
|
IBuilding | _building |
| |
|
bool | HasWalker [get] |
| | whether another walker can be spawned
|
| |
|
IReadOnlyList< T > | CurrentWalkers [get] |
| |