buildings property

Iterable<MeshNode> get buildings

The building nodes drawn so far, in the order they were drawn.

For a game that wants to do something to one of them — light the one the cursor is over, say. Shorter than simulation.buildings whenever the viewer has not found them all.

Implementation

Iterable<MeshNode> get buildings => _buildings.whereType<MeshNode>();