Struct evtc::buff::BuffFormula
source · pub struct BuffFormula {Show 16 fields
pub skill_id: u32,
pub formula: u32,
pub attr1: u32,
pub attr2: u32,
pub param1: f32,
pub param2: f32,
pub param3: f32,
pub trait_src: u32,
pub trait_self: u32,
pub buff_src: u32,
pub buff_self: u32,
pub not_npc: bool,
pub not_player: bool,
pub is_break: bool,
pub value: u32,
pub value_type: u8,
}
Expand description
Buff formula from an Event
with StateChange::BuffFormula
.
Fields§
§skill_id: u32
§formula: u32
§attr1: u32
§attr2: u32
§param1: f32
§param2: f32
§param3: f32
§trait_src: u32
§trait_self: u32
§buff_src: u32
§buff_self: u32
§not_npc: bool
§not_player: bool
§is_break: bool
§value: u32
§value_type: u8
Implementations§
source§impl BuffFormula
impl BuffFormula
sourcepub fn is_unconditional(&self) -> bool
pub fn is_unconditional(&self) -> bool
Whether the buff formula is always active.
Trait Implementations§
source§impl Clone for BuffFormula
impl Clone for BuffFormula
source§fn clone(&self) -> BuffFormula
fn clone(&self) -> BuffFormula
Returns a copy 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 BuffFormula
impl Debug for BuffFormula
source§impl<'de> Deserialize<'de> for BuffFormula
impl<'de> Deserialize<'de> for BuffFormula
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 Extract for BuffFormula
impl Extract for BuffFormula
source§impl From<RawBuffFormula> for BuffFormula
impl From<RawBuffFormula> for BuffFormula
source§fn from(raw: RawBuffFormula) -> Self
fn from(raw: RawBuffFormula) -> Self
Converts to this type from the input type.
source§impl Serialize for BuffFormula
impl Serialize for BuffFormula
source§impl TryExtract for BuffFormula
impl TryExtract for BuffFormula
Auto Trait Implementations§
impl Freeze for BuffFormula
impl RefUnwindSafe for BuffFormula
impl Send for BuffFormula
impl Sync for BuffFormula
impl Unpin for BuffFormula
impl UnwindSafe for BuffFormula
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