Przeglądaj źródła

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

David Kalnischkies 7 lat temu
rodzic
commit
48f4feb7a7
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      README.md

+ 2 - 2
README.md

@@ -730,10 +730,10 @@ In `EnTT`, identifiers are easily accessible:
 entt::DefaultRegistry registry;
 entt::DefaultRegistry registry;
 
 
 // standard component identifier
 // standard component identifier
-auto ctype = registry.component<Position>();
+auto ctype = registry.type<Position>();
 
 
 // single instance component identifier
 // 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
 Once the identifiers are made available, almost everything becomes pretty