Open Gaspard-- opened 2 months ago
When going on the queries page, and using a query like:
?Offset($this)
And then looking at the C++ API tag, the suggested code looks like the following:
Declaration:
flecs::query<Offset> q;
Creation:
q = world.query_builder<Offset>() .term_at(0).optional() .build();
Iteration
q.each([](flecs::entity e, Offset&) { });
In all of the C++ code above, offset should be a pointer Offset *.
Offset *
Nice catch! I'll look into it.
When going on the queries page, and using a query like:
And then looking at the C++ API tag, the suggested code looks like the following:
Declaration:
Creation:
Iteration
In all of the C++ code above, offset should be a pointer
Offset *
.