| 837 | } |
| 838 | |
| 839 | bool WorldCallbacks::tileIsOccupied( |
| 840 | World* world, Vec2I const& arg1, Maybe<bool> const& arg2, Maybe<bool> const& arg3) { |
| 841 | Vec2I const tile = arg1; |
| 842 | bool const tileLayerBool = arg2.value(true); |
| 843 | bool const includeEphemeral = arg3.value(false); |
| 844 | |
| 845 | TileLayer const tileLayer = tileLayerBool ? TileLayer::Foreground : TileLayer::Background; |
| 846 | |
| 847 | return world->tileIsOccupied(tile, tileLayer, includeEphemeral); |
| 848 | } |
| 849 | |
| 850 | bool WorldCallbacks::placeObject(World* world, |
| 851 | String const& objectType, |