Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::ecs::EntityChangeJournal Class Reference

#include <EntityChangeJournal.hpp>

Public Member Functions

u32 watch ()
void unwatch (u32 reader)
double sequence () const
double resetEpoch () const
double componentRevision (u32 component, bool topology) const
usize readerCount () const
usize retainedRows () const
void record (u32 entity, u32 flags=0, u32 component=ENTITY_CHANGE_NO_COMPONENT)
i32 read (double after, std::span< EntityChangeRow > output) const

Detailed Description

Independent cursors share bounded history. Exhausted or invalid cursors must rescan; reading never consumes another observer's rows. History exists only while observed; component stamps persist across unobserved periods. Raw component references require an explicit record.

Definition at line 36 of file EntityChangeJournal.hpp.

Member Function Documentation

◆ componentRevision()

double esengine::ecs::EntityChangeJournal::componentRevision ( u32 component,
bool topology ) const
inline

Definition at line 54 of file EntityChangeJournal.hpp.

References esengine::ecs::ENTITY_CHANGE_NO_COMPONENT.

◆ read()

i32 esengine::ecs::EntityChangeJournal::read ( double after,
std::span< EntityChangeRow > output ) const
inline

Definition at line 76 of file EntityChangeJournal.hpp.

References esengine::ecs::ENTITY_CHANGE_CAPACITY, and sequence().

◆ readerCount()

usize esengine::ecs::EntityChangeJournal::readerCount ( ) const
inline

Definition at line 59 of file EntityChangeJournal.hpp.

◆ record()

void esengine::ecs::EntityChangeJournal::record ( u32 entity,
u32 flags = 0,
u32 component = ENTITY_CHANGE_NO_COMPONENT )
inline

◆ resetEpoch()

double esengine::ecs::EntityChangeJournal::resetEpoch ( ) const
inline

Definition at line 53 of file EntityChangeJournal.hpp.

◆ retainedRows()

usize esengine::ecs::EntityChangeJournal::retainedRows ( ) const
inline

Definition at line 60 of file EntityChangeJournal.hpp.

References esengine::ecs::ENTITY_CHANGE_CAPACITY.

◆ sequence()

double esengine::ecs::EntityChangeJournal::sequence ( ) const
inline

Definition at line 52 of file EntityChangeJournal.hpp.

Referenced by read().

◆ unwatch()

void esengine::ecs::EntityChangeJournal::unwatch ( u32 reader)
inline

Definition at line 48 of file EntityChangeJournal.hpp.

◆ watch()

u32 esengine::ecs::EntityChangeJournal::watch ( )
inline

Definition at line 38 of file EntityChangeJournal.hpp.

References esengine::ecs::ENTITY_CHANGE_CAPACITY.


The documentation for this class was generated from the following file: