RuleConst
ldtk.rules.RuleConst (Class)
Constants shared by every consumer of the auto-layer rule engine.
Rule pattern cell encoding: 0 = ignored, +v = IntGrid value v required, -v = value v forbidden,
+/-ANYTHING = any value / no value, (groupUid+1)*GROUP_VALUE_BASE = any value of an IntGrid group.
Static Members
Special pattern value meaning "any IntGrid value" (positive) or "no IntGrid value" (negative)
Largest supported pattern size (must be odd)
Half of MAX_PATTERN_SIZE, used to expand recompute rectangles
Pattern values above this encode IntGrid groups
Size (in cells) of the square areas used by the IntGrid value prefilter
groupUidFromRuleValue(ruleValue: Int): Int
ruleValueFromGroupUid(groupUid: Int): Int
isValidPatternSize(size: Int): Bool