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