Struct rust_rpg_toolkit::ability::Ability[][src]

pub struct Ability {
Show 13 fields pub noise_level: NoiseLevel, pub delivery: AbilityDelivery, pub sound_effect: Option<Sound>, pub on_hit_sound_effect: Option<Sound>, pub cooldown: f32, pub cooldown_timer: f32, pub health_cost: f32, pub stamina_cost: f32, pub energy_cost: f32, pub range: f32, pub effects: Vec<Effect>, pub color_override: Option<Color>, pub size_override: Option<f32>,
}

Fields

noise_level: NoiseLeveldelivery: AbilityDeliverysound_effect: Option<Sound>on_hit_sound_effect: Option<Sound>cooldown: f32cooldown_timer: f32health_cost: f32stamina_cost: f32energy_cost: f32range: f32effects: Vec<Effect>color_override: Option<Color>size_override: Option<f32>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.