Struct rust_rpg_toolkit::nodes::projectiles::ProjectileParams[][src]

pub struct ProjectileParams {
    pub kind: ProjectileKind,
    pub effects: Vec<Effect>,
    pub color: Color,
    pub size: f32,
    pub origin: Vec2,
    pub direction: Vec2,
    pub speed: f32,
    pub range: f32,
    pub on_hit_sound_effect: Option<Sound>,
}

Fields

kind: ProjectileKindeffects: Vec<Effect>color: Colorsize: f32origin: Vec2direction: Vec2speed: f32range: f32on_hit_sound_effect: Option<Sound>

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 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.