Skip to main content

ApplyGenerationRule

A class in Root.Township, Alta.PAGaC.

PAGaC generation step that runs a set of GenerationRules over the generator's tag grid.

Constructors​

MemberWhat it is
ApplyGenerationRule()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private GenerationRule[] generationRulesThe rules to apply.
private bool isRepeatingUntilNoneIf set, repeats the pass until no rule matches.

Methods​

MemberWhat it is
override void Run(GenerationBase generationBase)Applies the rules once, or keeps applying them until a pass makes no changes when isRepeatingUntilNone is set.