[−][src]Struct rna::MeguScript
MeguScript is a data structure for loot table script
Methods
impl MeguScript
[src]
pub fn from_path(
path: impl Into<PathBuf>,
base_path: impl Into<PathBuf>
) -> Result<MeguScript, ReadError>
[src]
path: impl Into<PathBuf>,
base_path: impl Into<PathBuf>
) -> Result<MeguScript, ReadError>
Create new MeguScript from path
Errors
This method can fail when:
- ScriptFormat emit error (i.e. Invalid Syntax)
- I/O emit error (i.e. Cannot read file from path)
- Serde emit Error (i.e. JSON Error)
Example
let script = MeguScript::from_path("path/to/loot_table.ult", "resource").unwrap();
pub fn merge(&self, other: &mut MeguScript)
[src]
Merge this script to other
script.
This method will mutate other
but not self
.
pub fn compile(
&self,
base_path: impl Into<PathBuf>
) -> Result<MeguScript, ReadError>
[src]
&self,
base_path: impl Into<PathBuf>
) -> Result<MeguScript, ReadError>
Compile Extension
inside extend
(if not None
).
pub fn remove_drops(&mut self) -> Vec<Option<MeguDrop>>
[src]
Search through pools
field and remove any Drop
that's listed inside remove
field.
Trait Implementations
impl Clone for MeguScript
[src]
fn clone(&self) -> MeguScript
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MeguScript
[src]
impl Default for MeguScript
[src]
fn default() -> MeguScript
[src]
impl From<PathBuf> for MeguScript
[src]
fn from(path: PathBuf) -> MeguScript
[src]
impl From<ScriptFormat> for MeguScript
[src]
fn from(format: ScriptFormat) -> MeguScript
[src]
impl PartialEq<MeguScript> for MeguScript
[src]
fn eq(&self, other: &MeguScript) -> bool
[src]
fn ne(&self, other: &MeguScript) -> bool
[src]
impl StructuralPartialEq for MeguScript
[src]
Auto Trait Implementations
impl RefUnwindSafe for MeguScript
impl Send for MeguScript
impl Sync for MeguScript
impl Unpin for MeguScript
impl UnwindSafe for MeguScript
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,