| 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)) { |