* drop utility.hpp
* turn get_t/exclude_t into aliases for type_list
* updated api for basic_registry<...>::group/group_if_exists
* doc review to reflect all the changes above
This commit is contained in:
Michele Caini
2022-04-13 17:19:02 +02:00
parent c134ea3098
commit 803db476bb
10 changed files with 51 additions and 79 deletions

View File

@@ -1732,7 +1732,7 @@ auto group = registry.group<position, velocity>();
Filtering entities by components is also supported:
```cpp
auto group = registry.group<position, velocity>(entt::exclude<renderable>);
auto group = registry.group<position, velocity>({}, entt::exclude<renderable>);
```
Once created, the group gets the ownership of all the components specified in
@@ -1841,7 +1841,7 @@ nested groups, an excluded component type `T` is treated as being an observed
type `not_T`. Therefore, consider these two definitions:
* `registry.group<sprite, transform>()`.
* `registry.group<sprite, transform>(entt::exclude<rotation>)`.
* `registry.group<sprite, transform>({}, entt::exclude<rotation>)`.
They are treated as if users were defining the following groups: