Skip to content

Engine → Bindings → marshal.h

marshal::structural_guard

Syntax

struct structural_guard

Variables

AccessNameTypeDefaultDescription
publicruntimescripting::script_runtime *nullptr
publicworldecs::world *nullptr

Functions

Public

can_defer

[[nodiscard]] bool can_defer() const noexcept;

True when a deferred request has a buffer to go to (a runtime with the world attached).

commands

[[nodiscard]] ecs::command_buffer &commands() noexcept;

The buffer deferred requests are recorded into; only valid when can_defer().

deferred

[[nodiscard]] bool deferred() const noexcept;

True while the world is locked and the request must be recorded instead of applied.