pub struct MissingAsset {
pub kind: MissingKind,
pub name: String,
pub slot: u32,
}Expand description
Something a load needed and did not get.
A missing file is deliberately not an error: one unreadable atlas must not
cost you the character, so SSPlayer::load reports Err only when the
.ssab itself is unreadable. That leaves the caller unable to tell a complete
load from a partial one, which is what this answers — the human-facing half is
AssetLoader::warn, and this is the half a program can branch on.
Fields§
§kind: MissingKindWhether a texture or a pack is missing.
name: StringWhat was asked for: for a texture, the path the exporter wrote — relative to its pack’s directory, which is what the loader resolved it against and the only form the walk ever sees. For a pack, its name.
slot: u32For a texture, the slot a draw batch will ask for — a cellmap’s
name_hash, which SSPlayer::texture_key turns into the renderer’s
key. Zero for a pack, whose identity is its name.