MultipleSpawner
A class in Root.Township, the global namespace.
Network entity holding a list of simple spawners, each spawning a prefab or distribution at spawn points in the entity's chunk. Server only; something must call Spawn.
- Listed in Global namespace: M to O
- Inherits or implements
NetworkEntityBehaviour - Nested types
SimpleSpawner
Constructors
| Member | What it is |
|---|---|
MultipleSpawner() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
| Member | What it is |
|---|---|
private List<MultipleSpawner.SimpleSpawner> spawners | Backing field for Spawners. |
Properties
| Member | What it is |
|---|---|
List<MultipleSpawner.SimpleSpawner> Spawners { get; } | The simple spawners to run. |
Methods
| Member | What it is |
|---|---|
void Spawn() | Server: runs every spawner in the list, if the entity is in a chunk. |