فهرست منبع

test: minor changes

Michele Caini 6 سال پیش
والد
کامیت
969b8f0a7a
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      TODO
  2. 1 1
      test/entt/entity/registry.cpp

+ 2 - 1
TODO

@@ -19,5 +19,6 @@
   - get -> all, exclude -> none
 
 * WIP: snapshot rework/deprecation
- - range-assign cannot return iterators (eg group or sort-like listeners, see #386)
+ - range-assign cannot return iterators (eg group or sort-like listeners, see #386 - probably we cannot pass the component to the callback...)
+ - range-assign should accept also an iterator from which to "copy" instances
  - remove snapshot/loader from registry, make them external (faster) tools

+ 1 - 1
test/entt/entity/registry.cpp

@@ -19,7 +19,7 @@ struct listener {
     }
 
     template<typename Component>
-    void incr(entt::entity entity, entt::registry &registry, const Component &) {
+    void incr(entt::entity entity, entt::registry &registry) {
         ASSERT_TRUE(registry.valid(entity));
         ASSERT_TRUE(registry.has<Component>(entity));
         last = entity;