RuleGenerator
Needs to be implemented for generating RUL2 code for a specific project, along with an Syntax#IdResolver.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Abstract methods
Generates the Rules. Needs to be implemented.
Generates the Rules. Needs to be implemented.
Attributes
Concrete methods
When called, the Rules in the buffer will be flushed, but duplicate Rules in the buffer will be omitted.
When called, the Rules in the buffer will be flushed, but duplicate Rules in the buffer will be omitted.
Attributes
Abstract fields
The context provides the resolver (the function that maps Tiles
(meta syntax) to IdTiles
(IID, Rot, Flip).
The context provides the resolver (the function that maps Tiles
(meta syntax) to IdTiles
(IID, Rot, Flip).
It also provides the tileOrientationCache
, which overwrites the possible absolute orientations of some IDs when the RuleTransducer
determines that this is necessary. For correct functionality, it is important to overwrite this by a map that is common between all rule generators (globally).
It also implements handling of mirror variants.
Attributes
Concrete fields
A buffer for Rules to collect Rules before flushing them via createRules.