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

Method take

source/game/StarItemDrop.cpp:362–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362ItemPtr ItemDrop::take() {
363 if (canTake()) {
364 m_mode.set(Mode::Taken);
365 return m_item->take();
366 } else {
367 return {};
368 }
369}
370
371void ItemDrop::setPosition(Vec2F const& position) {
372 m_movementController.setPosition(position);

Callers 2

updateMethod · 0.45
takeByMethod · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected