pub struct SceneGroup {
pub scene: AssetId,
pub resources: Vec<(u8, u32)>,
pub defs: Vec<AssetId>,
}Expand description
One scene’s exclusively-owned blob content: the resource-stream entries and payload-carrying component defs reachable only from that scene’s members. Content shared between scenes (or used outside any scene) belongs to no group and loads with the world. Groups are listed in scene declaration order; their payloads are packed into dedicated blobs after the global set.
Fields§
§scene: AssetIdThe scene that exclusively owns this content.
resources: Vec<(u8, u32)>(resource_kind, handle) pairs from the resource stream.
defs: Vec<AssetId>Names of payload-carrying component defs.
Trait Implementations§
Source§impl Clone for SceneGroup
impl Clone for SceneGroup
Source§fn clone(&self) -> SceneGroup
fn clone(&self) -> SceneGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneGroup
impl Debug for SceneGroup
Source§impl Default for SceneGroup
impl Default for SceneGroup
Source§fn default() -> SceneGroup
fn default() -> SceneGroup
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SceneGroup
impl<'de> Deserialize<'de> for SceneGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SceneGroup
impl PartialEq for SceneGroup
Source§impl Serialize for SceneGroup
impl Serialize for SceneGroup
impl StructuralPartialEq for SceneGroup
Auto Trait Implementations§
impl Freeze for SceneGroup
impl RefUnwindSafe for SceneGroup
impl Send for SceneGroup
impl Sync for SceneGroup
impl Unpin for SceneGroup
impl UnsafeUnpin for SceneGroup
impl UnwindSafe for SceneGroup
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more