Fix README: identifiers are accessed via type<>()

This commit is contained in:
David Kalnischkies
2018-06-30 14:55:35 +02:00
committed by Michele Caini
parent ddc0a32bbc
commit 48f4feb7a7

View File

@@ -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