Class PointRuleData

Namespace
TDMaker.Unity.Authoring
Assembly
TDMaker.Unity.dll

Shared placement validation for spells and hero movement, baked into PointRuleDef.

public sealed class PointRuleData
Inheritance
PointRuleData
Inherited Members

Constructors

PointRuleData()

public PointRuleData()

Fields

maximum

Upper corner of the allowed rectangle.

public Vector2 maximum

Field Value

Vector2

minimum

Lower corner of the allowed rectangle.

public Vector2 minimum

Field Value

Vector2

pathTolerance

Maximum distance (range ellipse) between the point and the nearest lane.

[Min(0)]
public float pathTolerance

Field Value

float

requirePath

Requires a point near a lane; accepted points are projected onto the lane.

public bool requirePath

Field Value

bool

useBounds

Restricts points to a rectangle.

public bool useBounds

Field Value

bool

Methods

ToDef()

Bakes the rule.

public PointRuleDef ToDef()

Returns

PointRuleDef