|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
What a host does with the records a compiled system wrote. More...
#include <cstdint>#include <span>#include "esengine/aot/estella_abi.h"#include "esengine/ecs/Entity.hpp"#include "esengine/ecs/Registry.hpp"
Go to the source code of this file.
Namespaces | |
| namespace | esengine |
| namespace | esengine::aot |
Functions | |
| std::uint32_t | esengine::aot::applyCommands (ecs::Registry ®istry, std::span< const EsCmd > cmds) |
What a host does with the records a compiled system wrote.
A compiled system calls the engine zero times, so it cannot despawn an entity — it appends a record and the host acts on it after the call, which is also the only moment it safely can: a despawn invalidates the rows the call was reading.
Separate from AotHost.hpp because acting means knowing the Registry, and that header stays free of the engine so a harness can use it without linking one.
Counts what it could not apply rather than ignoring it. The record set grows, and a host that quietly dropped a kind it had not learned would look exactly like one where the system did nothing.
Definition in file AotCommands.hpp.