v3 renaming (bikeshedding encouraged!) #728
Replies: 7 comments 8 replies
-
|
Beta Was this translation helpful? Give feedback.
-
One of the things that has confused me a couple of times are triggers vs observers - I understand why the difference is made conceptually (triggers can be more performant because only one component), but the fact that the API allows me (in C++) to write:
has caused me some head scratching in the past :-) |
Beta Was this translation helpful? Give feedback.
-
Using a global for
Alternative scenario:
I could revise the Windows implementation so it only requires a |
Beta Was this translation helpful? Give feedback.
-
I'm going to make the following changes to query/relationship terminology:
I'll try to reduce using these terms in the API where possible, and use "first" and "second" instead when referring to the elements of a pair. For example: ecs_filter_init(world, &f, &(ecs_filter_desc_t) {
.terms = {{
.first.id = Likes, .second.id = Apples
}}
}); In parts of the API that do not exist within a context that explicitly works with pairs, using entity.get_target(flecs::ChildOf); |
Beta Was this translation helpful? Give feedback.
-
I'm going to remove the usage of
This will prevent confusion for the upcoming node API, where data provided by an iterator can come not just from queries, but could for example be the output of another system. An example of what this will look like in the new API: auto q = world.query_builder()
.term<Position>() // queries still have terms
.build();
q.iter([](flecs::iter& it) {
auto pos = it.field<Position>(1);
// iterate as usual
}); |
Beta Was this translation helpful? Give feedback.
-
The |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
The v3 release is getting closer, and I want to take the opportunity to clean up some of the names in the API. Areas that I think can be improved are:
I'll post progress on v3 naming here, feel free to leave suggestions!
Beta Was this translation helpful? Give feedback.
All reactions