Struct rust_rpg_toolkit::nodes::actor::ActorStats[][src]

pub struct ActorStats {
Show 19 fields pub strength: u32, pub dexterity: u32, pub constitution: u32, pub intelligence: u32, pub willpower: u32, pub perception: u32, pub charisma: u32, pub current_health: f32, pub max_health: f32, pub current_stamina: f32, pub max_stamina: f32, pub current_energy: f32, pub max_energy: f32, pub health_regen: f32, pub stamina_regen: f32, pub energy_regen: f32, pub view_distance: f32, pub carry_capacity: f32, pub move_speed: f32,
}

Fields

strength: u32dexterity: u32constitution: u32intelligence: u32willpower: u32perception: u32charisma: u32current_health: f32max_health: f32current_stamina: f32max_stamina: f32current_energy: f32max_energy: f32health_regen: f32stamina_regen: f32energy_regen: f32view_distance: f32carry_capacity: f32move_speed: f32

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Performs the conversion.

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.