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

Method entityCurrency

source/game/scripting/StarWorldLuaBindings.cpp:1395–1401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1393 }
1394
1395 Maybe<uint64_t> WorldEntityCallbacks::entityCurrency(World* world, EntityId entityId, String const& currencyType) {
1396 if (auto player = world->get<Player>(entityId)) {
1397 return player->currency(currencyType);
1398 } else {
1399 return {};
1400 }
1401 }
1402
1403 Maybe<uint64_t> WorldEntityCallbacks::entityHasCountOfItem(World* world, EntityId entityId, Json descriptor, Maybe<bool> exactMatch) {
1404 if (auto player = world->get<Player>(entityId)) {

Callers

nothing calls this directly

Calls 1

currencyMethod · 0.45

Tested by

no test coverage detected