Skip to main content

PointsPopulationValue

A class in Root.Township, Alta.Populations.

Spawn information backed by a fixed list of spawn points. Saved with the ecosystem.

Constructors​

MemberWhat it is
PointsPopulationValue(List<SpawnPoint> points, SpawnData spawnData)Creates a PointsPopulationValue from points and spawnData.

Fields​

1 private and internal field
MemberWhat it is
private static Logger loggerNLog logger for this class.

Properties​

MemberWhat it is
List<SpawnPoint> Points { get; private set; }The spawn points.

Methods​

MemberWhat it is
override void DrawGizmos()Draws each point as a sphere (solid if taken, wire if free) with an up line.
override int GetAreaLimit()The number of points, which caps the population.
override SpawnPoint GetPoint(int pointIndex)Returns the point at an index. Out of range, logs an error and returns the first point.
override SpawnPoint GetRandom(PopulationDefinition definition)Tries up to three random free points and returns the first the definition accepts, or null.
override EcosystemSaveData.Entry Save(uint key)Saves every point's position and rotation into an ecosystem entry.