Struct veloren_common_net::synced_components::inner::Stats
pub struct Stats {Show 24 fields
pub name: String,
pub original_body: Body,
pub damage_reduction: StatsSplit,
pub poise_reduction: StatsSplit,
pub max_health_modifiers: StatsModifier,
pub move_speed_modifier: f32,
pub jump_modifier: f32,
pub attack_speed_modifier: f32,
pub recovery_speed_modifier: f32,
pub friction_modifier: f32,
pub max_energy_modifiers: StatsModifier,
pub poise_damage_modifier: f32,
pub attack_damage_modifier: f32,
pub precision_multiplier_override: Option<f32>,
pub precision_vulnerability_multiplier_override: Option<f32>,
pub swim_speed_modifier: f32,
pub effects_on_attack: Vec<AttackEffect>,
pub mitigations_penetration: f32,
pub energy_reward_modifier: f32,
pub effects_on_damaged: Vec<DamagedEffect>,
pub effects_on_death: Vec<DeathEffect>,
pub disable_auxiliary_abilities: bool,
pub crowd_control_resistance: f32,
pub item_effect_reduction: f32,
}
Fields§
§name: String
§original_body: Body
§damage_reduction: StatsSplit
§poise_reduction: StatsSplit
§max_health_modifiers: StatsModifier
§move_speed_modifier: f32
§jump_modifier: f32
§attack_speed_modifier: f32
§recovery_speed_modifier: f32
§friction_modifier: f32
§max_energy_modifiers: StatsModifier
§poise_damage_modifier: f32
§attack_damage_modifier: f32
§precision_multiplier_override: Option<f32>
§precision_vulnerability_multiplier_override: Option<f32>
§swim_speed_modifier: f32
§effects_on_attack: Vec<AttackEffect>
This adds effects to any attacks that the entity makes
mitigations_penetration: f32
This is the fraction of damage reduction (from armor and other buffs) that gets ignored by attacks from this entity
energy_reward_modifier: f32
§effects_on_damaged: Vec<DamagedEffect>
This creates effects when the entity is damaged
effects_on_death: Vec<DeathEffect>
This creates effects when the entity is killed
disable_auxiliary_abilities: bool
§crowd_control_resistance: f32
§item_effect_reduction: f32
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Stats, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Stats> for EcsCompPacket
impl From<Stats> for EcsCompPacket
source§fn from(other: Stats) -> EcsCompPacket
fn from(other: Stats) -> EcsCompPacket
Converts to this type from the input type.
source§impl NetSync for Stats
impl NetSync for Stats
source§const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity
const SYNC_FROM: SyncFrom = SyncFrom::AnyEntity
Determines what for entities this component is synced to the client. Read more
source§fn pre_insert(&mut self, world: &World)
fn pre_insert(&mut self, world: &World)
Allows making modifications before the synced component is inserted on
the client.
source§fn pre_modify(&mut self, world: &World)
fn pre_modify(&mut self, world: &World)
Allows making modifications before the synced component is overwritten
with this version on the client.
§impl Serialize for Stats
impl Serialize for Stats
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<C, M> ConvertSaveload<M> for C
impl<C, M> ConvertSaveload<M> for C
§type Error = Infallible
type Error = Infallible
Error may occur during serialization or deserialization of component
§fn convert_into<F>(
&self,
_: F,
) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
fn convert_into<F>( &self, _: F, ) -> Result<<C as ConvertSaveload<M>>::Data, <C as ConvertSaveload<M>>::Error>
Convert this data type into serializable form (
Data
) using
entity to marker mapping function§fn convert_from<F>(
data: <C as ConvertSaveload<M>>::Data,
_: F,
) -> Result<C, <C as ConvertSaveload<M>>::Error>
fn convert_from<F>( data: <C as ConvertSaveload<M>>::Data, _: F, ) -> Result<C, <C as ConvertSaveload<M>>::Error>
Convert this data from a deserializable form (
Data
) using
entity to marker mapping function§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more