Skip to main content

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.

Constructors​

MemberWhat it is
MultipleSpawner()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private List<MultipleSpawner.SimpleSpawner> spawnersBacking field for Spawners.

Properties​

MemberWhat it is
List<MultipleSpawner.SimpleSpawner> Spawners { get; }The simple spawners to run.

Methods​

MemberWhat it is
void Spawn()Server: runs every spawner in the list, if the entity is in a chunk.