![]() |
Gaia-ECS v0.9.3
A simple and powerful entity component system
|
Non-owning mutable view over raw component bytes on an entity. More...
#include <component_cursor.h>
Public Member Functions | |
| GAIA_NODISCARD bool | valid () const noexcept |
Non-owning mutable 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::mut_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. mut_raw(...) is a silent mutation path. Call World::modify_raw(...) after writing through data directly. ComponentCursor::write_bytes() finishes the root component write itself.
|
inlinenoexcept |