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

Method pullInteractActions

source/game/StarPlayer.cpp:1589–1597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587}
1588
1589List<InteractAction> Player::pullInteractActions() {
1590 List<InteractAction> results;
1591 eraseWhere(m_pendingInteractActions, [&results](auto& promise) {
1592 if (auto res = promise.result())
1593 results.append(res.take());
1594 return promise.finished();
1595 });
1596 return results;
1597}
1598
1599uint64_t Player::currency(String const& currencyType) const {
1600 return m_inventory->currency(currencyType);

Callers 1

updateRunningMethod · 0.80

Calls 5

eraseWhereFunction · 0.85
resultMethod · 0.80
appendMethod · 0.45
takeMethod · 0.45
finishedMethod · 0.45

Tested by

no test coverage detected