Compatibility API¶
Compatibility API. The synchronous educational engine and legacy aliases remain available for compatibility. New application code should use ArchetypeRuntime.
SyncArchetypeRuntime
¶
Synchronous facade over ArchetypeRuntime.
Use it as a context manager. New asynchronous applications should use
ArchetypeRuntime directly.
SyncProcessor
¶
SyncWorld
¶
SyncWorld(
*,
world_id,
name,
querier,
updater,
system,
resources,
hooks,
run_id=None,
tick=0,
next_entity_id=1,
entity2sig=None,
spawn_cache=None,
despawn_cache=None,
)
Initialize the synchronous world.
SyncStore
¶
The ArchetypeStore is a component that manages the storage and retrieval of archetype tables.
Since our Schema supports multiple simulations and runs, our namespace is simply "archetypes". This allows us to have multiple simulations and runs in the same catalog since archetypes, by definition, the exact set of components attached to an entity. So we don't really which simulation or run we're using, so long as we differentiate between the simulation and run.
Using Daft Sessions/Catalogs enables us to reference arbitrary numbers of archetype tables without having to hold them in memory, provided we