Skip to main content

Circle

A class in Root.Township, Alta.Caves.PluginParts.

Cave generator part that stamps a circle into one Y slice of a layer, with a curve from centre to edge.

Constructors​

MemberWhat it is
Circle()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

5 private and internal fields
MemberWhat it is
private AnimationCurve curveBacking field for Curve.
private OperationType operationTypeBacking field for OperationType.
private Vector3 positionBacking field for Position.
private float radiusBacking field for Radius.
private int yIndexBacking field for YIndex.

Properties​

MemberWhat it is
AnimationCurve Curve { get; }Value from the centre (0) to the edge (1).
OperationType OperationType { get; }How the curve value combines with each cell.
Vector3 Position { get; }Centre of the circle in map coordinates. The bounds check uses X and Z, but the distance check uses X and Y.
float Radius { get; }Radius of the circle in cells.
int YIndex { get; }Which Y slice of the layer the circle is drawn into.

Methods​

MemberWhat it is
override IPartInstance GetInstance(PluginInstance plugin)Creates the CircleInstance that does the work.

Used in​

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