pub struct AgeDescription {
pub age_name: String,
pub start_date_time: u32,
pub day_length: f32,
pub max_capacity: i32,
pub linger_time: i32,
pub sequence_prefix: i32,
pub release_version: u32,
pub pages: Vec<PageEntry>,
}Expand description
Parsed .age file describing an age’s metadata and page list.
Fields§
§age_name: String§start_date_time: u32§day_length: f32§max_capacity: i32§linger_time: i32§sequence_prefix: i32§release_version: u32§pages: Vec<PageEntry>Implementations§
Source§impl AgeDescription
impl AgeDescription
Sourcepub fn auto_load_pages(&self) -> Vec<&PageEntry>
pub fn auto_load_pages(&self) -> Vec<&PageEntry>
Get pages that should auto-load (no kPreventAutoLoad flag).
Sourcepub fn page_location(&self, page: &PageEntry) -> u32
pub fn page_location(&self, page: &PageEntry) -> u32
Calculate the plLocation sequence number for a page.
Sourcepub fn prp_filename(&self, page: &PageEntry) -> String
pub fn prp_filename(&self, page: &PageEntry) -> String
Get the .prp filename for a page.
Sourcepub fn common_page_filenames(&self) -> Vec<String>
pub fn common_page_filenames(&self) -> Vec<String>
Common pages appended to every age (Textures, BuiltIn).
Trait Implementations§
Source§impl Clone for AgeDescription
impl Clone for AgeDescription
Source§fn clone(&self) -> AgeDescription
fn clone(&self) -> AgeDescription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgeDescription
impl RefUnwindSafe for AgeDescription
impl Send for AgeDescription
impl Sync for AgeDescription
impl Unpin for AgeDescription
impl UnsafeUnpin for AgeDescription
impl UnwindSafe for AgeDescription
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