Struct BlockRule
Checking rules for auto tiling map blocks for a source block
Constructors
BlockRule(Rule, Rule, Rule, Rule, Rule, Rule, Rule, Rule)
Checking rules for auto tiling map blocks for a source block
Declaration
public BlockRule(Rule ruleTL, Rule ruleT, Rule ruleTR, Rule ruleL, Rule ruleR, Rule ruleBL, Rule ruleB, Rule ruleBR)
Parameters
Type | Name | Description |
---|---|---|
Rule | ruleTL | Rule apply to the top-left block |
Rule | ruleT | Rule apply to the top block |
Rule | ruleTR | Rule apply to the top-right block |
Rule | ruleL | Rule apply to the left block |
Rule | ruleR | Rule apply to the right block |
Rule | ruleBL | Rule apply to the bottom-left block |
Rule | ruleB | Rule apply to the bottom block |
Rule | ruleBR | Rule apply to the bottom-right block |
Fields
EMPTY
Empty rule what don't perform any rule check
Declaration
public static readonly BlockRule EMPTY
RuleB
Rule apply to the bottom block
Declaration
public Rule RuleB
RuleBL
Rule apply to the bottom-left block
Declaration
public Rule RuleBL
RuleBR
Rule apply to the bottom-right block
Declaration
public Rule RuleBR
RuleL
Rule apply to the left block
Declaration
public Rule RuleL
RuleR
Rule apply to the right block
Declaration
public Rule RuleR
RuleT
Rule apply to the top block
Declaration
public Rule RuleT
RuleTL
Rule apply to the top-left block
Declaration
public Rule RuleTL
RuleTR
Rule apply to the top-right block
Declaration
public Rule RuleTR
Properties
IsEmpty
True if the rule is all set to whatever
Declaration
public readonly bool IsEmpty { get; }
this[int]
Get rule at given index. (↖ ↑ ↗ ← → ↙ ↓ ↘)
Declaration
public Rule this[int i] { readonly get; set; }
Methods
IsSameWith(BlockRule)
True if the rule is same with given rule
Declaration
public readonly bool IsSameWith(BlockRule other)