Class LoopConstraint
Enforces that the entire path is made out of loops, i.e. there are at least two routes between any two connected points.
Implements
Namespace: DeBroglie.Constraints
Assembly: DeBroglie.dll
Syntax
public class LoopConstraint : ITileConstraint
Properties
| Edit this page View SourcePathSpec
Declaration
public IPathSpec PathSpec { get; set; }
Property Value
Type | Description |
---|---|
IPathSpec |
Methods
| Edit this page View SourceCheck(TilePropagator)
Called frequently during generation to help maintain the constraint.
Declaration
public void Check(TilePropagator propagator)
Parameters
Type | Name | Description |
---|---|---|
TilePropagator | propagator | The propagator to constrain |
Init(TilePropagator)
Called once when the propagator first initializes.
Declaration
public void Init(TilePropagator propagator)
Parameters
Type | Name | Description |
---|---|---|
TilePropagator | propagator | The propagator to constrain |