published property

List<BurningWreck> get published

The wrecks as they lie now, oldest first: what a view draws them from.

Implementation

List<BurningWreck> get published {
  final world = _elements.world;
  return <BurningWreck>[
    for (final MapEntry(key: body, value: oil) in _burning.entries)
      if (world.contains(body.native))
        BurningWreck(
          body: body.native.raw,
          oil: oil,
          at: world.localPositionOf(body.native),
          orientation: world.orientationOf(body.native),
          burning: world.isBurning(body.native),
        ),
  ];
}