chunk_view.h
| File Path | engine/include/conjure/ecs/chunk_view.h |
| API ↗ | Queries, views and systems |
Untyped per-chunk access. A chunk_view is what queries hand to callbacks and what the C# Span<T> is built on. Acquiring a non-const span stamps the column with the world version the view was created with (chunk-granular change detection); const spans never stamp. Inside a system (a view created through system_context) a non-const span of a component the system did not declare as written asserts in Debug and Development.
Classes
| File | Description |
|---|---|
chunk_view |
Forward Declarations
chunk
system_context
Functions
Public
detail::context_declares_write
detail::context_declares_write[[nodiscard]] CONJURE_API bool context_declares_write(const system_context &context, component_id id) noexcept;True when the system behind context declared id as written.
detail::report_undeclared_write
detail::report_undeclared_writeCONJURE_API void report_undeclared_write(const system_context &context, component_id id);Asserts (naming the system and component) about an undeclared write.