attcs / Octree

Octree/Quadtree/N-dimensional linear tree
MIT License
113 stars 13 forks source link

Independent entity storage #29

Closed 01Pollux closed 2 months ago

01Pollux commented 3 months ago

Since the library uses only size(), operator[] to access point/box for an entity, it would be better to provide an accessor callback that only needs to implements those 2 operations rather than requiring the use of std::span. This will be very useful for ecs libraries where they use their own storage techniques.

attcs commented 3 months ago

Hi! I implemented the independent storage possibility, and it is compatible with hashmap solutions.