Fix README: identifiers are accessed via type<>()
This commit is contained in:
committed by
Michele Caini
parent
ddc0a32bbc
commit
48f4feb7a7
@@ -730,10 +730,10 @@ In `EnTT`, identifiers are easily accessible:
|
||||
entt::DefaultRegistry registry;
|
||||
|
||||
// standard component identifier
|
||||
auto ctype = registry.component<Position>();
|
||||
auto ctype = registry.type<Position>();
|
||||
|
||||
// single instance component identifier
|
||||
auto ttype = registry.tag<PlayingCharacter>();
|
||||
auto ttype = registry.type<PlayingCharacter>(entt::tag_t{});
|
||||
```
|
||||
|
||||
Once the identifiers are made available, almost everything becomes pretty
|
||||
|
||||
Reference in New Issue
Block a user