Skip to main content

LineDraw

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

Static helpers that draw into a map chunk layer: thick 2D lines for corridors and 3D cylinders for tunnels.

Methods​

MemberWhat it is
static void Cylinder3D(MapChunkLayer layer, Vector3 start, Vector3 end, AnimationCurve radius, AnimationCurve value, OperationType operation, SimplexNoise noise = null, float scale = 0.1, float variation = 0.1)Applies a value curve to cells within a radius curve of a line segment, with optional simplex noise on the edge.
static void ThickLine2D(MapChunkLayer layer, MapChunkLayer manMade, int yIndex, int startX, int startY, int endX, int endY, float width, float lineThreshold, int value)Draws a thick line of value on one Y slice, also marking each written cell in the man-made layer.