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

Method monsterType

source/game/scripting/StarWorldLuaBindings.cpp:1841–1846  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1839 }
1840
1841 Maybe<String> WorldEntityCallbacks::monsterType(World* world, EntityId entityId) {
1842 if (auto monster = world->get<Monster>(entityId))
1843 return monster->typeName();
1844
1845 return {};
1846 }
1847
1848 Maybe<String> WorldEntityCallbacks::npcType(World* world, EntityId entityId) {
1849 if (auto npc = world->get<Npc>(entityId))

Callers

nothing calls this directly

Calls 1

typeNameMethod · 0.45

Tested by

no test coverage detected