buildingAt method

MeshNode? buildingAt(
  1. int index
)

The node drawn for simulation.buildings[index], or null while the viewer has not found it.

buildings answers in the order the halls were found, which is not the simulation's; a game that dresses one particular hall — the strategy demo chars the one that burns — asks by the simulation's index here.

Implementation

MeshNode? buildingAt(int index) =>
    index < _buildings.length ? _buildings[index] : null;