make EntityAdmin::hasAll const
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user