Skip to main content

PopulationSpawnInformation

An abstract class in Root.Township, Alta.Populations.

Base for the spawn point source a population sample uses: gives random or indexed spawn points and saves itself into the ecosystem save.

Constructors​

MemberWhat it is
PopulationSpawnInformation(SpawnData spawnData)Creates a PopulationSpawnInformation from spawnData.

Properties​

MemberWhat it is
SpawnData SpawnData { get; }Spawn data passed on to things spawned from these points.

Methods​

MemberWhat it is
virtual void DrawGizmos()Editor: draws the spawn points. Empty by default.
virtual int GetAreaLimit()Most members this area can hold. No limit by default.
abstract SpawnPoint GetPoint(int pointIndex)Gets the spawn point at an index.
abstract SpawnPoint GetRandom(PopulationDefinition definition)Picks a random spawn point suitable for the given population definition.
virtual EcosystemSaveData.Entry Save(uint key)Writes an ecosystem save entry for this information under the given key.

Used in​

Members of other types that take, return or hold a PopulationSpawnInformation: