MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / tileIsOccupied

Method tileIsOccupied

source/game/scripting/StarWorldLuaBindings.cpp:839–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

previewTilesMethod · 0.45

Calls 1

valueMethod · 0.45

Tested by

no test coverage detected