瀏覽代碼

minor changes

Michele Caini 5 年之前
父節點
當前提交
4a537d82d3
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 6 0
      TODO
  2. 1 1
      src/entt/entity/registry.hpp

+ 6 - 0
TODO

@@ -8,6 +8,7 @@
 * update documentation for meta, it contains less than half of the actual feature
 * update documentation for meta, it contains less than half of the actual feature
 
 
 * custom pools example:
 * custom pools example:
+  - lockless fully concurrent ro/rw pool with free lists
   - multi instance
   - multi instance
   - tables
   - tables
   - enable/disable component
   - enable/disable component
@@ -19,11 +20,16 @@
 
 
 WIP:
 WIP:
 * HP: headless (sparse set only) view
 * HP: headless (sparse set only) view
+* HP: pass the registry to pools, basic poly storage should have only component member
 * HP: make view pack work also with groups, make packs input iterator only, add view adapter for external sources
 * HP: make view pack work also with groups, make packs input iterator only, add view adapter for external sources
 * HP: write documentation for custom storages and views!!
 * HP: write documentation for custom storages and views!!
+* HP: add support for const references to any/poly (actual copy on copy, data vs cdata)
 * HP: any/poly: configurable sbo size, compile-time policies like sbo-required.
 * HP: any/poly: configurable sbo size, compile-time policies like sbo-required.
 * HP: registry: use a poly object for pools, no more pool_data type.
 * HP: registry: use a poly object for pools, no more pool_data type.
 * HP: make runtime views use opaque storage and therefore return also elements.
 * HP: make runtime views use opaque storage and therefore return also elements.
+* HP: make try_get part of the storage adapter and use it in the poly storage.
+* HP: make poly storage optionally disabled
+* HP: poly support for data members and predefined vtable type (no need to adhere to the api of type)
 * suppress warnings in meta.hpp (uninitialized members)
 * suppress warnings in meta.hpp (uninitialized members)
 * add exclude-only views to combine with packs
 * add exclude-only views to combine with packs
 * deprecate non-owning groups in favor of owning views and view packs, introduce lazy owning views
 * deprecate non-owning groups in favor of owning views and view packs, introduce lazy owning views

+ 1 - 1
src/entt/entity/registry.hpp

@@ -761,7 +761,7 @@ public:
      */
      */
     void remove_all(const entity_type entity) {
     void remove_all(const entity_type entity) {
         ENTT_ASSERT(valid(entity));
         ENTT_ASSERT(valid(entity));
-        entity_type wrap[1]{entity};
+        entity_type wrap[1u]{entity};
 
 
         for(auto pos = pools.size(); pos; --pos) {
         for(auto pos = pools.size(); pos; --pos) {
             if(auto &pdata = pools[pos-1]; pdata.pool && pdata.pool->contains(entity)) {
             if(auto &pdata = pools[pos-1]; pdata.pool && pdata.pool->contains(entity)) {