Struct tiger_lib::everything::Everything
source · pub struct Everything { /* private fields */ }Expand description
A record of everything known about the game and mod being validated.
References to Everything are passed down through nearly all of the validation logic, so
that individual functions can access all the defined game items.
The validator has two main phases: parsing and validation.
- During parsing, the script files are read, parsed, and loaded into the various databases.
Everythingis mutable during this period. - During validation,
Everythingis immutable and cross-checking between item types can be done safely.
Implementations§
source§impl Everything
impl Everything
pub fn new( vanilla_dir: &Path, mod_root: &Path, replace_paths: Vec<PathBuf> ) -> Result<Self, FilesError>
pub fn fullpath(&self, entry: &FileEntry) -> PathBuf
pub fn load_config_filtering_rules(&self)
pub fn load_output_settings(&self, default_colors: bool)
pub fn load_all(&mut self)
pub fn validate_all(&self)
pub fn check_rivers(&mut self)
pub fn check_pod(&mut self)
pub fn check_unused(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Everything
impl Send for Everything
impl Sync for Everything
impl Unpin for Everything
impl !UnwindSafe for Everything
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