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

Method anchorPositions

source/game/StarObject.cpp:349–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349List<Vec2I> Object::anchorPositions() const {
350 if (auto orientation = currentOrientation()) {
351 List<Vec2I> positions;
352 for (auto anchor : orientation->anchors)
353 positions.append(anchor.position + tilePosition());
354 return positions;
355 } else {
356 return {};
357 }
358}
359
360List<Vec2I> Object::spaces() const {
361 if (auto orientation = currentOrientation())

Callers 1

clearTileEntitiesMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected