|
|
@@ -99,7 +99,7 @@ struct velocity {
|
|
|
float dy;
|
|
|
};
|
|
|
|
|
|
-void update(entt::registry ®istry) {
|
|
|
+void update(entt::registry<> ®istry) {
|
|
|
auto view = registry.view<position, velocity>();
|
|
|
|
|
|
for(auto entity: view) {
|
|
|
@@ -114,7 +114,7 @@ void update(entt::registry ®istry) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-void update(std::uint64_t dt, entt::registry ®istry) {
|
|
|
+void update(std::uint64_t dt, entt::registry<> ®istry) {
|
|
|
registry.view<position, velocity>().each([dt](const auto, auto &pos, auto &vel) {
|
|
|
// gets all the components of the view at once ...
|
|
|
|