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

Method canModifyTile

source/game/interfaces/StarWorld.cpp:75–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool World::canModifyTile(Vec2I const& pos, TileModification const& modification, bool allowEntityOverlap) const {
76 return !validTileModifications({{pos, modification}}, allowEntityOverlap).empty();
77}
78
79bool World::modifyTile(Vec2I const& pos, TileModification const& modification, bool allowEntityOverlap) {
80 return applyTileModifications({{pos, modification}}, allowEntityOverlap).empty();

Callers 3

canPlaceMethod · 0.80
previewTilesMethod · 0.80
previewTilesMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected