|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#include <AotHost.hpp>
Public Attributes | |
| const std::uint32_t * | sparse = nullptr |
| std::uint32_t | sparseCount = 0 |
| unsigned char * | rows = nullptr |
| std::uint32_t | stride = 0 |
| std::uint32_t | indexMask = 0 |
| const std::uint32_t * | owners = nullptr |
| std::uint32_t | ownerCount = 0 |
A component handed over as MEMORY rather than as a callback: rows at a stride, and a sparse table of slot + 1 by entity index. What ScriptPool::span gives — a script component's entity-to-slot map lives in the scripting language, and asking it per entity per frame is what AOT exists to delete.
Definition at line 281 of file AotHost.hpp.
| std::uint32_t esengine::aot::RowSpan::indexMask = 0 |
Entity::Layout::INDEX_MASK, passed rather than included so this header stays free of the engine and the harness needs no link.
Definition at line 288 of file AotHost.hpp.
Referenced by esengine::aot::rowAt().
| std::uint32_t esengine::aot::RowSpan::ownerCount = 0 |
Slots ever claimed. A pool reuses slots rather than compacting, so this is a high-water mark and the array has holes — see NO_OWNER.
Definition at line 299 of file AotHost.hpp.
Referenced by esengine::aot::fromMovingOwners().
| const std::uint32_t* esengine::aot::RowSpan::owners = nullptr |
Slot -> the raw entity holding it, so this column can be asked WHO is in it. The sparse table above answers the other direction only.
Null where the owner reported none — the one reason a script component fails to narrow.
Definition at line 296 of file AotHost.hpp.
Referenced by esengine::aot::fromMovingOwners().
| unsigned char* esengine::aot::RowSpan::rows = nullptr |
Definition at line 284 of file AotHost.hpp.
Referenced by esengine::aot::rowAt().
| const std::uint32_t* esengine::aot::RowSpan::sparse = nullptr |
Definition at line 282 of file AotHost.hpp.
Referenced by esengine::aot::rowAt().
| std::uint32_t esengine::aot::RowSpan::sparseCount = 0 |
Definition at line 283 of file AotHost.hpp.
Referenced by esengine::aot::rowAt().
| std::uint32_t esengine::aot::RowSpan::stride = 0 |
Definition at line 285 of file AotHost.hpp.
Referenced by esengine::aot::rowAt().