[][src]Struct reefast::dh::Effect

pub struct Effect {
    pub id: ReeInt,
    pub category_id: ReeInt,
    pub is_assistance: bool,
    pub is_offensive: bool,
    pub is_warp_safe: bool,
    pub discharge_attr_id: Option<ReeInt>,
    pub duration_attr_id: Option<ReeInt>,
    pub range_attr_id: Option<ReeInt>,
    pub falloff_attr_id: Option<ReeInt>,
    pub tracking_attr_id: Option<ReeInt>,
    pub usage_chance_attr_id: Option<ReeInt>,
    pub resist_attr_id: Option<ReeInt>,
    pub mods: Vec<EffectMod>,
}

Dogma effect data.

Fields

id: ReeInt

Dogma effect ID.

category_id: ReeInt

Refers an effect category the effect belongs to.

is_assistance: bool

Defines if the effect is considered as an assistance.

is_offensive: bool

Defines if the effect is offensive or not.

is_warp_safe: bool

Defines if the effect can be used while in warp.

discharge_attr_id: Option<ReeInt>

Refers an attribute value which defines capacitor cost to run the effect.

duration_attr_id: Option<ReeInt>

Refers an attribute value which defines how long an effect cycle would take in milliseconds.

range_attr_id: Option<ReeInt>

Refers an attribute value which defines optimal range of the effect in meters.

falloff_attr_id: Option<ReeInt>

Refers an attribute value which defines falloff range of the effect in meters.

tracking_attr_id: Option<ReeInt>

Refers an attribute value which defines tracking speed of the effect.

usage_chance_attr_id: Option<ReeInt>

Refers an attribute value which defines chance of the effect to run when its parent item is fitted.

resist_attr_id: Option<ReeInt>

Refers an attribute value which defines resistance strength to the effect.

mods: Vec<EffectMod>

Modifiers of the effect.

Implementations

impl Effect[src]

pub fn new(
    id: ReeInt,
    category_id: ReeInt,
    is_assistance: bool,
    is_offensive: bool,
    is_warp_safe: bool,
    discharge_attr_id: Option<ReeInt>,
    duration_attr_id: Option<ReeInt>,
    range_attr_id: Option<ReeInt>,
    falloff_attr_id: Option<ReeInt>,
    tracking_attr_id: Option<ReeInt>,
    usage_chance_attr_id: Option<ReeInt>,
    resist_attr_id: Option<ReeInt>,
    mods: Vec<EffectMod>
) -> Effect
[src]

Make a new dogma effect out of passed data.

Trait Implementations

impl Debug for Effect[src]

Auto Trait Implementations

impl RefUnwindSafe for Effect

impl Send for Effect

impl Sync for Effect

impl Unpin for Effect

impl UnwindSafe for Effect

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.