Class PointRuleDef

Namespace
TDMaker.Core.Defs
Assembly
TDMaker.Core.dll

Reusable finite-coordinate, bounds, path, and optional terrain checks.

public sealed class PointRuleDef
Inheritance
PointRuleDef
Inherited Members

Constructors

PointRuleDef(bool, float, Vec2?, Vec2?, IPointRule)

Creates shared point validation.

public PointRuleDef(bool requirePath = true, float pathTolerance = 0, Vec2? minimum = null, Vec2? maximum = null, IPointRule custom = null)

Parameters

requirePath bool
pathTolerance float
minimum Vec2?
maximum Vec2?
custom IPointRule

Properties

Custom

Optional additional terrain or level policy.

public IPointRule Custom { get; }

Property Value

IPointRule

Maximum

Optional upper coordinate bounds.

public Vec2? Maximum { get; }

Property Value

Vec2?

Minimum

Optional lower coordinate bounds.

public Vec2? Minimum { get; }

Property Value

Vec2?

PathTolerance

Maximum elliptical distance to a lane before projection.

public float PathTolerance { get; }

Property Value

float

RequirePath

Requires proximity to a lane and projects accepted points onto it.

public bool RequirePath { get; }

Property Value

bool