Skip to main content

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.

Constructors​

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

Fields​

11 private and internal fields
MemberWhat it is
private int circlesBacking field for Circles.
private AnimationCurve curveBacking field for Curve.
private float maximumCircleDistanceBacking field for MaximumCircleDistance.
private float maximumEdgeRadiusBacking field for MaximumEdgeRadius.
private float minimumCircleDistanceBacking field for MinimumCircleDistance.
private float minimumEdgeRadiusBacking field for MinimumEdgeRadius.
private OperationType operationTypeBacking field for OperationType.
private Vector3 positionBacking field for Position.
private float radiusBacking field for Radius.
private BiomeAttribute sizeAttributeBacking field for SizeAttribute.
private int yIndexBacking field for YIndex.

Properties​

MemberWhat 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​

MemberWhat 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: