Move world() to public section
@@ -108,6 +108,11 @@ protected:
template<typename ... Components>
struct query final : query_base, iterable<Components...> {
+public:
+ flecs::world world() const {
+ return flecs::world(m_world);
+ }
+
private:
using Terms = typename _::term_ptrs<Components...>::array;
@@ -123,10 +128,6 @@ private:
return ecs_query_next_instanced;
}
- flecs::world world() const {
- return flecs::world(m_world);
- }
-
public:
using query_base::query_base;
};
