matchNode method

void matchNode(
  1. Tile tile,
  2. List<Shape> matchingList,
  3. NodeProperties nodeProperties
)

finds all Shapes for a given node but does NOT check if the rul

Implementation

void matchNode(final Tile tile, List<Shape> matchingList, NodeProperties nodeProperties) {
  if (matches(nodeProperties.tags, tile.indoorLevel)) {
    matchingList.addAll((instructions as ShapeInstructions).shapeNodes);
    subRules.forEach((element) {
      element.matchNode(tile, matchingList, nodeProperties);
    });
  }
}