Template Struct Owns¶
Defined in File system_base.h
Struct Documentation¶
-
template<typename C>
struct Owns¶ Component ownership wrapper for owned components.
Wraps a component type to indicate that a system “owns” it for iteration purposes. EnTT packs owned components together in memory for cache-efficient access.
See also
Views for viewed component wrapper
- Example:
class MySystem : public System< MySystem, Owns<TransformComponent>, // Owned (cache-optimized) Views<RenderComponent> // Viewed (not optimized) > { // System definition };
- Template Parameters:
C – The component type