pub struct WorldManifest {
pub component_counts: Vec<(u8, u32)>,
pub max_blob_index: u32,
}Expand description
A verified summary of the blob’s shape, produced by cook from the final
record streams and carried alongside them in the metadata block. The runtime
trusts it (debug builds re-derive and assert it matches): the per-type
counts pre-size the ECS columns before the bulk component load, and
max_blob_index names the overflow files without scanning either stream.
Anything further (type presence, feature flags) is deliberately not
duplicated here: it is a counts lookup away.
Fields§
§component_counts: Vec<(u8, u32)>(component discriminant, record count), ascending, nonzero counts only.
max_blob_index: u32Highest blob index any payload locator references; 0 = no overflow.
Implementations§
Source§impl WorldManifest
impl WorldManifest
Sourcepub fn from_records(defs: &[BlobAssetDef], resources: &[ResourceRecord]) -> Self
pub fn from_records(defs: &[BlobAssetDef], resources: &[ResourceRecord]) -> Self
Derive the manifest from the final record streams. Cook builds the shipped manifest with this (so it is consistent by construction); the runtime re-derives it in debug builds to assert the shipped copy matches.
Trait Implementations§
Source§impl Clone for WorldManifest
impl Clone for WorldManifest
Source§fn clone(&self) -> WorldManifest
fn clone(&self) -> WorldManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more