Skip to main content

Module runtime

Module runtime 

Source
Expand description

Advanced runtime primitives that remain supported but are not part of the smallest onboarding surface.

Re-exports§

pub use super::archetype_world::ArchetypeQueryCache;
pub use super::archetype_world::ArchetypeQueryState;
pub use super::query::SimpleQueryCache;
pub use super::query::SimpleQueryState;
pub use super::resource::Resource;
pub use super::Event;
pub use super::EventReader;
pub use super::EventWriter;
pub use super::Plugin;
pub use super::PluginGroup;
pub use super::QueryStorage;
pub use super::RuntimeWorld;
pub use super::RuntimeWorldMut;
pub use super::ScheduleError;
pub use super::ScheduleStage;
pub use super::SimpleQuery;
pub use super::SimpleQueryBuilder;
pub use super::SimpleScheduler;
pub use super::SystemConfig;
pub use super::WorldBackend;

Structs§

ChangeTracker
Tracks which components were added, removed, or modified within a tick.
ComponentEvent
A component event passed to observer functions.
HookRegistry
Registry of component lifecycle hooks.
HookedWorld
A wrapper around SimpleWorld that fires lifecycle hooks on component mutations.
ObservedWorld
A wrapper around SimpleWorld that fires observers on component mutations.
ObserverRegistry
Registry of component observers that fire on component events.
StorageWorld
World that reads/writes individual entities from Soroban persistent storage.
SystemContext
Execution context for the Soroban-first SimpleWorld system API.
SystemSpec
Declarative registration spec for the Soroban-first runtime system APIs.
TrackedWorld
A wrapper around SimpleWorld that automatically records component changes.
WorldMetadata
Metadata stored as a single persistent entry.

Traits§

AppSystem
Marker trait for systems that participate in the Soroban-first app runtime.
SimpleSystem
System trait for the SimpleWorld/Soroban runtime.

Functions§

context_system
Wrap a FnMut(&mut SystemContext) closure as a runtime system.
named_app_system
Wrap a pre-built runtime system together with its registration name.
named_context_system
Wrap a context-aware closure together with its registration name.
named_system
Wrap a world/env closure together with its registration name.
world_system
Wrap a FnMut(&mut SimpleWorld, &Env) closure as a runtime system.