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

Method canPlaceObject

source/game/StarObjectDatabase.cpp:391–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391bool ObjectDatabase::canPlaceObject(World const* world, Vec2I const& position, String const& objectName) const {
392 return getConfig(objectName)->findValidOrientation(world, position) != NPos;
393}
394
395ObjectPtr ObjectDatabase::createForPlacement(World const* world, String const& objectName, Vec2I const& position,
396 Direction direction, Json const& parameters) const {

Callers 2

renderObjectPreviewsMethod · 0.80
canPlaceMethod · 0.80

Calls 1

findValidOrientationMethod · 0.80

Tested by

no test coverage detected