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

Method tileUsesPlaces

source/game/StarDungeonGenerator.cpp:768–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766 }
767
768 bool Part::tileUsesPlaces(Vec2I pos) const {
769 bool result = false;
770 m_reader->forEachTileAt(pos,
771 [&result](Vec2I, Tile const& tile) -> bool {
772 if (tile.usesPlaces()) {
773 result = true;
774 return true;
775 }
776 return false;
777 });
778 return result;
779 }
780
781 Direction Part::pickByEdge(Vec2I position, Vec2U size) const {
782 int dxa = position[0];

Callers

nothing calls this directly

Calls 2

usesPlacesMethod · 0.80
forEachTileAtMethod · 0.45

Tested by

no test coverage detected