getObject method

GameObject? getObject(
  1. WorldState state
)

Implementation

GameObject? getObject(WorldState state) {
  if (object == null) return null;
  final table = state.getTableOrDefault(cell.table);
  final cellObjects = table.getCell(cell.position);
  return cellObjects.objects.elementAtOrNull(object!);
}