pub struct SpellDescDependencies {
pub spell_ids: Vec<u32>,
pub effects: Vec<EffectDependency>,
pub spell_values: Vec<SpellValueDependency>,
pub player_stats: Vec<String>,
pub custom_vars: Vec<String>,
pub spell_known_checks: Vec<u32>,
pub aura_checks: Vec<u32>,
pub specialization_checks: Vec<u8>,
pub needs_gender: bool,
pub embedded_spell_ids: Vec<u32>,
}Fields§
§spell_ids: Vec<u32>§effects: Vec<EffectDependency>§spell_values: Vec<SpellValueDependency>§player_stats: Vec<String>§custom_vars: Vec<String>§spell_known_checks: Vec<u32>§aura_checks: Vec<u32>§specialization_checks: Vec<u8>§needs_gender: bool§embedded_spell_ids: Vec<u32>Implementations§
Source§impl SpellDescDependencies
impl SpellDescDependencies
pub fn new() -> Self
pub fn add_spell_id(&mut self, spell_id: u32)
pub fn add_effect(&mut self, spell_id: u32, effect_index: u8, var_type: String)
pub fn add_spell_value(&mut self, spell_id: u32, var_type: String)
pub fn add_player_stat(&mut self, stat: String)
pub fn add_custom_var(&mut self, name: String)
pub fn add_spell_known_check(&mut self, spell_id: u32)
pub fn add_aura_check(&mut self, aura_id: u32)
pub fn add_specialization_check(&mut self, spec_index: u8)
pub fn add_embedded_spell(&mut self, spell_id: u32)
pub fn merge(&mut self, other: &SpellDescDependencies)
Trait Implementations§
Source§impl Clone for SpellDescDependencies
impl Clone for SpellDescDependencies
Source§fn clone(&self) -> SpellDescDependencies
fn clone(&self) -> SpellDescDependencies
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 moreSource§impl Debug for SpellDescDependencies
impl Debug for SpellDescDependencies
Source§impl Default for SpellDescDependencies
impl Default for SpellDescDependencies
Source§fn default() -> SpellDescDependencies
fn default() -> SpellDescDependencies
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SpellDescDependencies
impl<'de> Deserialize<'de> for SpellDescDependencies
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SpellDescDependencies> for JsValuewhere
SpellDescDependencies: Serialize,
impl From<SpellDescDependencies> for JsValuewhere
SpellDescDependencies: Serialize,
Source§fn from(value: SpellDescDependencies) -> Self
fn from(value: SpellDescDependencies) -> Self
Converts to this type from the input type.
Source§impl IntoWasmAbi for &SpellDescDependencieswhere
SpellDescDependencies: Serialize,
impl IntoWasmAbi for &SpellDescDependencieswhere
SpellDescDependencies: Serialize,
Source§impl IntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
impl IntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
Source§impl OptionIntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
impl OptionIntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
Source§impl Serialize for SpellDescDependencies
impl Serialize for SpellDescDependencies
Source§impl Tsify for SpellDescDependencies
impl Tsify for SpellDescDependencies
const DECL: &'static str = "export interface SpellDescDependencies {\n spellIds: number[];\n effects: EffectDependency[];\n spellValues: SpellValueDependency[];\n playerStats: string[];\n customVars: string[];\n spellKnownChecks: number[];\n auraChecks: number[];\n specializationChecks: number[];\n needsGender: boolean;\n embeddedSpellIds: number[];\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorIntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
impl VectorIntoWasmAbi for SpellDescDependencieswhere
SpellDescDependencies: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for SpellDescDependencies
impl WasmDescribe for SpellDescDependencies
Auto Trait Implementations§
impl Freeze for SpellDescDependencies
impl RefUnwindSafe for SpellDescDependencies
impl Send for SpellDescDependencies
impl Sync for SpellDescDependencies
impl Unpin for SpellDescDependencies
impl UnsafeUnpin for SpellDescDependencies
impl UnwindSafe for SpellDescDependencies
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.