Expand description
Scene module containing the Scene struct and related functionality.
Re-exports§
pub use registry::*;pub use migrations::*;
Modules§
- migrations
- Scene format migrations.
- registry
- Open component registration system for scene serialization.
Structs§
- Archetype
Serialization Strategy - A serialization strategy that uses the “Archetype” strategy.
- Component
Definition - A single component in the stable intermediate representation.
- Definition
Serialization Strategy - A serialization strategy that uses a stable, intermediate representation.
- Entity
Definition - An entity definition in the stable intermediate representation.
- Message
Pack Serialization Strategy - MessagePack-encoded
SceneRecipe. IdentifierKH_MESSAGEPACK_V1. - Recipe
Serialization Strategy - A serialization strategy that uses a sequence of commands (
SceneRecipe). - Scene
Definition - The full scene definition in stable intermediate representation.
- Scene
Recipe - The root container for a scene recipe. It’s simply a list of commands.
Enums§
- Deserialization
Error - An error that can occur during the deserialization process.
- Scene
Command - A single, atomic operation required to construct a scene.
- Serialization
Error - An error that can occur during the serialization process.
Traits§
- Serialization
Strategy - The abstract contract for a scene serialization strategy.
Functions§
- instantiate_
subtree - Inverse of
serialize_subtree. Decodes the recipe bytes and spawns the subtree intoworld, returning the new root’sEntityIdso the caller can position it / reparent it / treat it as the drop target’s child. - serialize_
subtree - Encodes the subtree rooted at
root(root + all descendants reached via theChildrencomponent) as a stand-alone bincode-encodedSceneRecipe. Exists to back the editor’s “Save as Prefab” flow: the resulting bytes round-trip throughinstantiate_subtree.