make EntityAdmin::hasAll const

This commit is contained in:
2026-08-09 13:45:24 +02:00
parent c0b009c548
commit 79650ae211
3 changed files with 9 additions and 11 deletions

View File

@@ -28,7 +28,7 @@ public:
void forEach(Func&& f) const;
template <typename... Ts>
bool hasAll(entt::entity entity);
bool hasAll(entt::entity entity) const;
template <typename T>
T& get(entt::entity entity);
@@ -101,7 +101,7 @@ void EntityAdmin::forEach(Func&& f) const
}
template <typename... Ts>
bool EntityAdmin::hasAll(entt::entity entity)
bool EntityAdmin::hasAll(entt::entity entity) const
{
return m_registry.all_of<Ts...>(entity);
}