![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Non-owning read-only view over raw component bytes on an entity. More...
#include <component_cursor.h>
Public Member Functions | |
| GAIA_NODISCARD bool | valid () const noexcept |
Non-owning read-only view over raw component bytes on an entity.
The view intentionally stores only a pointer, byte size, and flags. The component id is omitted because callers already pass it to World::get_raw(...); keeping it out of the view keeps the return value compact. A valid tag is represented by data == nullptr, size == 0, and ComponentRawViewFlag_Valid set.
data. data: tags are valid views with a null pointer.
|
inlinenoexcept |