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
| Member | What it is |
|---|
Circle() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
5 private and internal fields
| Member | What it is |
|---|
private AnimationCurve curve | Backing field for Curve. |
private OperationType operationType | Backing field for OperationType. |
private Vector3 position | Backing field for Position. |
private float radius | Backing field for Radius. |
private int yIndex | Backing field for YIndex. |
Properties
| Member | What 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
Used in
Members of other types that take, return or hold a Circle: