| 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)) |
nothing calls this directly
no test coverage detected