RuleGroups
ldtk.rules.RuleGroups (Class)
Static Members
TRUE if the rules of this group apply to a layer instance.
biomeValues are the enum value ids of the level biome field (null if the layer has no biome field or the level has no value).
optionalRules are the uids of the optional groups enabled in this layer instance.
| Name | Type |
|---|---|
g |
RuleGroupInfo |
biomeValues |
Null<Array<String>> |
optionalRules |
Map |
| Returns |
|---|
| Bool |
isGroupEnabled(g: RuleGroupInfo, optionalRules: Map): BoolAn optional group enabled in the layer instance applies even if the group itself is inactive
| Name | Type |
|---|---|
g |
RuleGroupInfo |
optionalRules |
Map |
| Returns |
|---|
| Bool |