BlobEdge
A class in Root.Township, Alta.Caves.PluginParts.
A cave map generator part that stamps a blob (a centre circle plus smaller circles around it) into one layer of the cave map, combined with the existing values by an operation.
- Listed in World generation
- Inherits or implements
MapGeneratorPart - Derived types
BlobEdgeInstance
Constructors
| Member | What it is |
|---|---|
BlobEdge() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
11 private and internal fields
| Member | What it is |
|---|---|
private int circles | Backing field for Circles. |
private AnimationCurve curve | Backing field for Curve. |
private float maximumCircleDistance | Backing field for MaximumCircleDistance. |
private float maximumEdgeRadius | Backing field for MaximumEdgeRadius. |
private float minimumCircleDistance | Backing field for MinimumCircleDistance. |
private float minimumEdgeRadius | Backing field for MinimumEdgeRadius. |
private OperationType operationType | Backing field for OperationType. |
private Vector3 position | Backing field for Position. |
private float radius | Backing field for Radius. |
private BiomeAttribute sizeAttribute | Backing field for SizeAttribute. |
private int yIndex | Backing field for YIndex. |
Properties
| Member | What it is |
|---|---|
int Circles { get; } | How many extra circles surround the centre one. |
AnimationCurve Curve { get; } | Value from the circle centre (0) to its edge (1). |
float MaximumCircleDistance { get; } | Largest distance of an extra circle from the centre, as a fraction of Radius. |
float MaximumEdgeRadius { get; } | Largest radius of an extra circle. |
float MinimumCircleDistance { get; } | Smallest distance of an extra circle from the centre, as a fraction of Radius. |
float MinimumEdgeRadius { get; } | Smallest radius of an extra circle. |
OperationType OperationType { get; } | How the curve value combines with the map value (set, max, add and so on). |
Vector3 Position { get; } | Centre of the blob. Only X and Z are used. |
float Radius { get; } | Radius of the centre circle, scaled by the size attribute. |
BiomeAttribute SizeAttribute { get; } | Biome attribute that scales the blob's size. |
int YIndex { get; } | Which layer of the map the blob writes to. |
Methods
| Member | What it is |
|---|---|
override IPartInstance GetInstance(PluginInstance plugin) | Creates a BlobEdgeInstance that places the circles for a generator. |
Used in
Members of other types that take, return or hold a BlobEdge: