Skip to main content

SpellEffect

Struct SpellEffect 

Source
pub struct SpellEffect {
Show 30 fields pub index: i32, pub effect: i32, pub mechanic: i32, pub effect_attributes: i32, pub aura: i32, pub base_points: f64, pub period: i32, pub chain_targets: i32, pub chain_multiplier: f64, pub trigger_spell: i32, pub misc_value_0: i32, pub misc_value_1: i32, pub shapeshift_form_flags: i32, pub shapeshift_combat_round_time_ms: i32, pub radius_min: f32, pub radius_max: f32, pub coefficient: f32, pub scaling_class: i32, pub points_per_resource: f32, pub variance: f32, pub bonus_coefficient: f64, pub bonus_coefficient_from_ap: f64, pub amplitude: f32, pub pvp_multiplier: f32, pub effect_class_mask_1: i32, pub effect_class_mask_2: i32, pub effect_class_mask_3: i32, pub effect_class_mask_4: i32, pub implicit_target_a: i32, pub implicit_target_b: i32,
}
Expand description

Denormalized spell effect data for description-variable resolution ($s1, $t1, $x1, $a1, etc.).

Fields§

§index: i32§effect: i32§mechanic: i32

Raw SpellEffect.EffectMechanic; zero inherits the spell-level mechanic.

§effect_attributes: i32

Raw SpellEffect.EffectAttributes bitmask.

§aura: i32§base_points: f64§period: i32§chain_targets: i32§chain_multiplier: f64§trigger_spell: i32§misc_value_0: i32§misc_value_1: i32§shapeshift_form_flags: i32

Raw SpellShapeshiftForm.Flags for the form referenced by a shapeshift aura.

§shapeshift_combat_round_time_ms: i32

Raw SpellShapeshiftForm.CombatRoundTime in milliseconds; non-zero when the form imposes its own swing period.

§radius_min: f32§radius_max: f32§coefficient: f32§scaling_class: i32§points_per_resource: f32§variance: f32§bonus_coefficient: f64§bonus_coefficient_from_ap: f64§amplitude: f32§pvp_multiplier: f32§effect_class_mask_1: i32§effect_class_mask_2: i32§effect_class_mask_3: i32§effect_class_mask_4: i32§implicit_target_a: i32

Raw SpellEffect.ImplicitTarget[0] selector (TargetA).

§implicit_target_b: i32

Raw SpellEffect.ImplicitTarget[1] selector (TargetB).

Trait Implementations§

Source§

impl Clone for SpellEffect

Source§

fn clone(&self) -> SpellEffect

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SpellEffect

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SpellEffect

Source§

fn default() -> SpellEffect

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SpellEffect

Source§

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 JsonSchema for SpellEffect

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for SpellEffect

Source§

fn eq(&self, other: &SpellEffect) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SpellEffect

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Tsify for SpellEffect

Source§

const DECL: &'static str = "/**\n * Denormalized spell effect data for description-variable resolution (`$s1`, `$t1`, `$x1`, `$a1`, etc.).\n */\nexport interface SpellEffect {\n index: number;\n effect: number;\n /**\n * Raw `SpellEffect.EffectMechanic`; zero inherits the spell-level mechanic.\n */\n mechanic?: number;\n /**\n * Raw `SpellEffect.EffectAttributes` bitmask.\n */\n effect_attributes?: number;\n aura: number;\n base_points: number;\n period: number;\n chain_targets: number;\n chain_multiplier?: number;\n trigger_spell: number;\n misc_value_0: number;\n misc_value_1: number;\n /**\n * Raw `SpellShapeshiftForm.Flags` for the form referenced by a shapeshift aura.\n */\n shapeshift_form_flags?: number;\n /**\n * Raw `SpellShapeshiftForm.CombatRoundTime` in milliseconds; non-zero when the form imposes its own swing period.\n */\n shapeshift_combat_round_time_ms?: number;\n radius_min: number;\n radius_max: number;\n coefficient: number;\n scaling_class?: number;\n points_per_resource: number;\n variance: number;\n bonus_coefficient: number;\n bonus_coefficient_from_ap: number;\n amplitude: number;\n pvp_multiplier: number;\n effect_class_mask_1?: number;\n effect_class_mask_2?: number;\n effect_class_mask_3?: number;\n effect_class_mask_4?: number;\n /**\n * Raw `SpellEffect.ImplicitTarget[0]` selector (`TargetA`).\n */\n implicit_target_a?: number;\n /**\n * Raw `SpellEffect.ImplicitTarget[1]` selector (`TargetB`).\n */\n implicit_target_b?: number;\n}"

Source§

const SERIALIZATION_CONFIG: SerializationConfig

Source§

type JsType = JsType

§

fn into_js(&self) -> Result<Self::JsType, Error>
where Self: Serialize,

§

fn from_js<T>(js: T) -> Result<Self, Error>
where T: Into<JsValue>, Self: DeserializeOwned,

Source§

impl StructuralPartialEq for SpellEffect

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,