getObjects method

Map<int, GameObject> getObjects(
  1. WorldState state
)

Implementation

Map<int, GameObject> getObjects(WorldState state) {
  final table = state.getTableOrDefault(this.table);
  final cell = table.getCell(from);
  return Map.fromEntries(objects.map((e) {
    final object = cell.objects.elementAtOrNull(e);
    if (object == null) return null;
    return MapEntry(e, object);
  }).nonNulls);
}