Skip to content

Engine → ECS

chunk_view.h

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

class chunk;

system_context

class system_context;

Functions

Public

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

CONJURE_API void report_undeclared_write(const system_context &context, component_id id);

Asserts (naming the system and component) about an undeclared write.