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

Method entityPortrait

source/game/scripting/StarWorldLuaBindings.cpp:1491–1496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489 }
1490
1491 LuaNullTermWrapper<Maybe<List<Drawable>>> WorldEntityCallbacks::entityPortrait(World* world, EntityId entityId, String const& portraitMode) {
1492 if (auto portraitEntity = as<PortraitEntity>(world->entity(entityId)))
1493 return portraitEntity->portrait(PortraitModeNames.getLeft(portraitMode));
1494
1495 return {};
1496 }
1497
1498 Maybe<String> WorldEntityCallbacks::entityHandItem(World* world, EntityId entityId, String const& handName) {
1499 ToolHand toolHand;

Callers

nothing calls this directly

Calls 2

entityMethod · 0.45
portraitMethod · 0.45

Tested by

no test coverage detected