pub struct SplitFilePresence {
pub has_root: bool,
pub has_tex0: bool,
pub has_tex1: bool,
pub has_obj0: bool,
pub has_obj1: bool,
pub has_lod: bool,
}Expand description
Bitmask indicating which split files are present on the filesystem.
Returned by SplitFileSet::verify_existence to indicate which files
actually exist for a given ADT tile.
§Detection Patterns
- Pre-Cataclysm:
has_rootonly - Cataclysm:
has_root,has_tex0,has_obj0(minimum) - Legion+: Above plus potentially
has_lod - BfA+:
tex1typically absent (deprecated)
Fields§
§has_root: boolRoot file exists (.adt).
has_tex0: boolPrimary texture file exists (_tex0.adt).
has_tex1: boolSecondary texture file exists (_tex1.adt).
has_obj0: boolPrimary object file exists (_obj0.adt).
has_obj1: boolSecondary object file exists (_obj1.adt).
has_lod: boolLOD file exists (_lod.adt).
Implementations§
Source§impl SplitFilePresence
impl SplitFilePresence
Sourcepub const fn is_complete_cataclysm_set(&self) -> bool
pub const fn is_complete_cataclysm_set(&self) -> bool
Check if this represents a complete Cataclysm+ split file set.
Requires root, tex0, and obj0 to be present.
§Returns
true if minimum required files exist for Cataclysm+ split architecture.
Sourcepub const fn is_monolithic(&self) -> bool
pub const fn is_monolithic(&self) -> bool
Check if this represents a pre-Cataclysm monolithic file.
Only root file exists, no split files.
§Returns
true if only root exists (monolithic ADT).
Sourcepub const fn has_split_files(&self) -> bool
pub const fn has_split_files(&self) -> bool
Check if any split files are present.
§Returns
true if at least one split file (tex/obj/lod) exists.
Trait Implementations§
Source§impl Clone for SplitFilePresence
impl Clone for SplitFilePresence
Source§fn clone(&self) -> SplitFilePresence
fn clone(&self) -> SplitFilePresence
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SplitFilePresence
Source§impl Debug for SplitFilePresence
impl Debug for SplitFilePresence
impl Eq for SplitFilePresence
Source§impl Hash for SplitFilePresence
impl Hash for SplitFilePresence
Source§impl PartialEq for SplitFilePresence
impl PartialEq for SplitFilePresence
Source§fn eq(&self, other: &SplitFilePresence) -> bool
fn eq(&self, other: &SplitFilePresence) -> bool
self and other values to be equal, and is used by ==.