Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.06 KB

File metadata and controls

22 lines (17 loc) · 1.06 KB

AdjacencyConstraint Class

A WFC constraint that enforces neighboring modules per slot.
For example,
This constraint lets a module express that its western neighbor must be of a certain module.

public class AdjacencyConstraint : BrewedInk.WFC.ModuleConstraint

Inheritance System.Object 🡒 ModuleConstraint 🡒 AdjacencyConstraint

Fields


Delta

The positional difference this constraint applies for. If the module is being tested between two slots (A, and B), the constraint only applies if the positional difference between A and B equals the Delta.


NeedsOneOf

A set of possible module values that can exist at a slot with the given Delta.