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

Method isMonster

source/game/scripting/StarWorldLuaBindings.cpp:1834–1839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1832 }
1833
1834 bool WorldEntityCallbacks::isMonster(World* world, EntityId entityId, Maybe<bool> const& aggressive) {
1835 if (auto entity = world->get<Monster>(entityId))
1836 return !aggressive || *aggressive == entity->aggressive();
1837
1838 return false;
1839 }
1840
1841 Maybe<String> WorldEntityCallbacks::monsterType(World* world, EntityId entityId) {
1842 if (auto monster = world->get<Monster>(entityId))

Callers

nothing calls this directly

Calls 1

aggressiveMethod · 0.45

Tested by

no test coverage detected