Enum veloren_common_net::msg::ecs_packet::EcsCompPacket
source · pub enum EcsCompPacket {
Show 40 variants
Body(Body),
Hardcore(Hardcore),
Stats(Stats),
Buffs(Buffs),
Auras(Auras),
Energy(Energy),
Health(Health),
Heads(Heads),
Poise(Poise),
LightEmitter(LightEmitter),
LootOwner(LootOwner),
PickupItem(PickupItem),
Scale(Scale),
Group(Group),
IsMount(IsMount),
IsRider(IsRider),
IsVolumeRider(IsVolumeRider),
IsLeader(IsLeader),
IsFollower(IsFollower),
Mass(Mass),
Density(Density),
Collider(Collider),
Sticky(Sticky),
Immovable(Immovable),
CharacterState(CharacterState),
CharacterActivity(CharacterActivity),
Shockwave(Shockwave),
Beam(Beam),
Alignment(Alignment),
Stance(Stance),
Inventory(Inventory),
SkillSet(SkillSet),
Admin(Admin),
Combo(Combo),
ActiveAbilities(ActiveAbilities),
CanBuild(CanBuild),
Object(Object),
Pos(Pos),
Vel(Vel),
Ori(Ori),
}
Variants§
Body(Body)
Hardcore(Hardcore)
Stats(Stats)
Buffs(Buffs)
Auras(Auras)
Energy(Energy)
Health(Health)
Heads(Heads)
Poise(Poise)
LightEmitter(LightEmitter)
LootOwner(LootOwner)
PickupItem(PickupItem)
Scale(Scale)
Group(Group)
IsMount(IsMount)
IsRider(IsRider)
IsVolumeRider(IsVolumeRider)
IsLeader(IsLeader)
IsFollower(IsFollower)
Mass(Mass)
Density(Density)
Collider(Collider)
Sticky(Sticky)
Immovable(Immovable)
CharacterState(CharacterState)
CharacterActivity(CharacterActivity)
Shockwave(Shockwave)
Beam(Beam)
Alignment(Alignment)
Stance(Stance)
Inventory(Inventory)
SkillSet(SkillSet)
Admin(Admin)
Combo(Combo)
ActiveAbilities(ActiveAbilities)
CanBuild(CanBuild)
Object(Object)
Pos(Pos)
Vel(Vel)
Ori(Ori)
Trait Implementations§
source§impl Clone for EcsCompPacket
impl Clone for EcsCompPacket
source§fn clone(&self) -> EcsCompPacket
fn clone(&self) -> EcsCompPacket
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CompPacket for EcsCompPacket
impl CompPacket for EcsCompPacket
type Phantom = EcsCompPhantom
fn apply_insert(self, entity: Entity, world: &World, force_update: bool)
fn apply_modify(self, entity: Entity, world: &World, force_update: bool)
fn apply_remove(phantom: Self::Phantom, entity: Entity, world: &World)
source§impl Debug for EcsCompPacket
impl Debug for EcsCompPacket
source§impl<'de> Deserialize<'de> for EcsCompPacket
impl<'de> Deserialize<'de> for EcsCompPacket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ActiveAbilities> for EcsCompPacket
impl From<ActiveAbilities> for EcsCompPacket
source§fn from(other: ActiveAbilities) -> EcsCompPacket
fn from(other: ActiveAbilities) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Admin> for EcsCompPacket
impl From<Admin> for EcsCompPacket
source§fn from(other: Admin) -> EcsCompPacket
fn from(other: Admin) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Alignment> for EcsCompPacket
impl From<Alignment> for EcsCompPacket
source§fn from(other: Alignment) -> EcsCompPacket
fn from(other: Alignment) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Auras> for EcsCompPacket
impl From<Auras> for EcsCompPacket
source§fn from(other: Auras) -> EcsCompPacket
fn from(other: Auras) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Beam> for EcsCompPacket
impl From<Beam> for EcsCompPacket
source§fn from(other: Beam) -> EcsCompPacket
fn from(other: Beam) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Body> for EcsCompPacket
impl From<Body> for EcsCompPacket
source§fn from(other: Body) -> EcsCompPacket
fn from(other: Body) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Buffs> for EcsCompPacket
impl From<Buffs> for EcsCompPacket
source§fn from(other: Buffs) -> EcsCompPacket
fn from(other: Buffs) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<CanBuild> for EcsCompPacket
impl From<CanBuild> for EcsCompPacket
source§fn from(other: CanBuild) -> EcsCompPacket
fn from(other: CanBuild) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<CharacterActivity> for EcsCompPacket
impl From<CharacterActivity> for EcsCompPacket
source§fn from(other: CharacterActivity) -> EcsCompPacket
fn from(other: CharacterActivity) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<CharacterState> for EcsCompPacket
impl From<CharacterState> for EcsCompPacket
source§fn from(other: CharacterState) -> EcsCompPacket
fn from(other: CharacterState) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Collider> for EcsCompPacket
impl From<Collider> for EcsCompPacket
source§fn from(other: Collider) -> EcsCompPacket
fn from(other: Collider) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Combo> for EcsCompPacket
impl From<Combo> for EcsCompPacket
source§fn from(other: Combo) -> EcsCompPacket
fn from(other: Combo) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Density> for EcsCompPacket
impl From<Density> for EcsCompPacket
source§fn from(other: Density) -> EcsCompPacket
fn from(other: Density) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Energy> for EcsCompPacket
impl From<Energy> for EcsCompPacket
source§fn from(other: Energy) -> EcsCompPacket
fn from(other: Energy) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Group> for EcsCompPacket
impl From<Group> for EcsCompPacket
source§fn from(other: Group) -> EcsCompPacket
fn from(other: Group) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Hardcore> for EcsCompPacket
impl From<Hardcore> for EcsCompPacket
source§fn from(other: Hardcore) -> EcsCompPacket
fn from(other: Hardcore) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Heads> for EcsCompPacket
impl From<Heads> for EcsCompPacket
source§fn from(other: Heads) -> EcsCompPacket
fn from(other: Heads) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Health> for EcsCompPacket
impl From<Health> for EcsCompPacket
source§fn from(other: Health) -> EcsCompPacket
fn from(other: Health) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Immovable> for EcsCompPacket
impl From<Immovable> for EcsCompPacket
source§fn from(other: Immovable) -> EcsCompPacket
fn from(other: Immovable) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Inventory> for EcsCompPacket
impl From<Inventory> for EcsCompPacket
source§fn from(other: Inventory) -> EcsCompPacket
fn from(other: Inventory) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Is<Follower>> for EcsCompPacket
impl From<Is<Follower>> for EcsCompPacket
source§fn from(other: IsFollower) -> EcsCompPacket
fn from(other: IsFollower) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Is<Leader>> for EcsCompPacket
impl From<Is<Leader>> for EcsCompPacket
source§fn from(other: IsLeader) -> EcsCompPacket
fn from(other: IsLeader) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Is<Mount>> for EcsCompPacket
impl From<Is<Mount>> for EcsCompPacket
source§fn from(other: IsMount) -> EcsCompPacket
fn from(other: IsMount) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Is<Rider>> for EcsCompPacket
impl From<Is<Rider>> for EcsCompPacket
source§fn from(other: IsRider) -> EcsCompPacket
fn from(other: IsRider) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Is<VolumeRider>> for EcsCompPacket
impl From<Is<VolumeRider>> for EcsCompPacket
source§fn from(other: IsVolumeRider) -> EcsCompPacket
fn from(other: IsVolumeRider) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<LightEmitter> for EcsCompPacket
impl From<LightEmitter> for EcsCompPacket
source§fn from(other: LightEmitter) -> EcsCompPacket
fn from(other: LightEmitter) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<LootOwner> for EcsCompPacket
impl From<LootOwner> for EcsCompPacket
source§fn from(other: LootOwner) -> EcsCompPacket
fn from(other: LootOwner) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Mass> for EcsCompPacket
impl From<Mass> for EcsCompPacket
source§fn from(other: Mass) -> EcsCompPacket
fn from(other: Mass) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Object> for EcsCompPacket
impl From<Object> for EcsCompPacket
source§fn from(other: Object) -> EcsCompPacket
fn from(other: Object) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Ori> for EcsCompPacket
impl From<Ori> for EcsCompPacket
source§fn from(other: Ori) -> EcsCompPacket
fn from(other: Ori) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<PickupItem> for EcsCompPacket
impl From<PickupItem> for EcsCompPacket
source§fn from(other: PickupItem) -> EcsCompPacket
fn from(other: PickupItem) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Poise> for EcsCompPacket
impl From<Poise> for EcsCompPacket
source§fn from(other: Poise) -> EcsCompPacket
fn from(other: Poise) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Pos> for EcsCompPacket
impl From<Pos> for EcsCompPacket
source§fn from(other: Pos) -> EcsCompPacket
fn from(other: Pos) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Scale> for EcsCompPacket
impl From<Scale> for EcsCompPacket
source§fn from(other: Scale) -> EcsCompPacket
fn from(other: Scale) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Shockwave> for EcsCompPacket
impl From<Shockwave> for EcsCompPacket
source§fn from(other: Shockwave) -> EcsCompPacket
fn from(other: Shockwave) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<SkillSet> for EcsCompPacket
impl From<SkillSet> for EcsCompPacket
source§fn from(other: SkillSet) -> EcsCompPacket
fn from(other: SkillSet) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Stance> for EcsCompPacket
impl From<Stance> for EcsCompPacket
source§fn from(other: Stance) -> EcsCompPacket
fn from(other: Stance) -> EcsCompPacket
Converts to this type from the input type.
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 From<Sticky> for EcsCompPacket
impl From<Sticky> for EcsCompPacket
source§fn from(other: Sticky) -> EcsCompPacket
fn from(other: Sticky) -> EcsCompPacket
Converts to this type from the input type.
source§impl From<Vel> for EcsCompPacket
impl From<Vel> for EcsCompPacket
source§fn from(other: Vel) -> EcsCompPacket
fn from(other: Vel) -> EcsCompPacket
Converts to this type from the input type.
source§impl Serialize for EcsCompPacket
impl Serialize for EcsCompPacket
source§impl SumType for EcsCompPacket
impl SumType for EcsCompPacket
source§fn downcast_ref<T: Any>(&self) -> Option<&T>
fn downcast_ref<T: Any>(&self) -> Option<&T>
Try to get a reference to the inner field if it is a
T
.source§fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>
fn downcast_mut<T: Any>(&mut self) -> Option<&mut T>
Return a mutable reference to the inner field if it is a
T
.source§fn variant_is<T: Any>(&self) -> bool
fn variant_is<T: Any>(&self) -> bool
Is the underlying variant an instance of
T
?source§impl TryFrom<EcsCompPacket> for ActiveAbilities
impl TryFrom<EcsCompPacket> for ActiveAbilities
source§fn try_from(other: EcsCompPacket) -> Result<ActiveAbilities, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<ActiveAbilities, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for Admin
impl TryFrom<EcsCompPacket> for Admin
source§impl TryFrom<EcsCompPacket> for Alignment
impl TryFrom<EcsCompPacket> for Alignment
source§impl TryFrom<EcsCompPacket> for Auras
impl TryFrom<EcsCompPacket> for Auras
source§impl TryFrom<EcsCompPacket> for Beam
impl TryFrom<EcsCompPacket> for Beam
source§impl TryFrom<EcsCompPacket> for Body
impl TryFrom<EcsCompPacket> for Body
source§impl TryFrom<EcsCompPacket> for Buffs
impl TryFrom<EcsCompPacket> for Buffs
source§impl TryFrom<EcsCompPacket> for CanBuild
impl TryFrom<EcsCompPacket> for CanBuild
source§impl TryFrom<EcsCompPacket> for CharacterActivity
impl TryFrom<EcsCompPacket> for CharacterActivity
source§fn try_from(other: EcsCompPacket) -> Result<CharacterActivity, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<CharacterActivity, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for CharacterState
impl TryFrom<EcsCompPacket> for CharacterState
source§fn try_from(other: EcsCompPacket) -> Result<CharacterState, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<CharacterState, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for Collider
impl TryFrom<EcsCompPacket> for Collider
source§impl TryFrom<EcsCompPacket> for Combo
impl TryFrom<EcsCompPacket> for Combo
source§impl TryFrom<EcsCompPacket> for Density
impl TryFrom<EcsCompPacket> for Density
source§impl TryFrom<EcsCompPacket> for Energy
impl TryFrom<EcsCompPacket> for Energy
source§impl TryFrom<EcsCompPacket> for Group
impl TryFrom<EcsCompPacket> for Group
source§impl TryFrom<EcsCompPacket> for Hardcore
impl TryFrom<EcsCompPacket> for Hardcore
source§impl TryFrom<EcsCompPacket> for Heads
impl TryFrom<EcsCompPacket> for Heads
source§impl TryFrom<EcsCompPacket> for Health
impl TryFrom<EcsCompPacket> for Health
source§impl TryFrom<EcsCompPacket> for Immovable
impl TryFrom<EcsCompPacket> for Immovable
source§impl TryFrom<EcsCompPacket> for Inventory
impl TryFrom<EcsCompPacket> for Inventory
source§impl TryFrom<EcsCompPacket> for IsFollower
impl TryFrom<EcsCompPacket> for IsFollower
source§fn try_from(other: EcsCompPacket) -> Result<IsFollower, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<IsFollower, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for IsLeader
impl TryFrom<EcsCompPacket> for IsLeader
source§impl TryFrom<EcsCompPacket> for IsMount
impl TryFrom<EcsCompPacket> for IsMount
source§impl TryFrom<EcsCompPacket> for IsRider
impl TryFrom<EcsCompPacket> for IsRider
source§impl TryFrom<EcsCompPacket> for IsVolumeRider
impl TryFrom<EcsCompPacket> for IsVolumeRider
source§fn try_from(other: EcsCompPacket) -> Result<IsVolumeRider, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<IsVolumeRider, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for LightEmitter
impl TryFrom<EcsCompPacket> for LightEmitter
source§fn try_from(other: EcsCompPacket) -> Result<LightEmitter, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<LightEmitter, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for LootOwner
impl TryFrom<EcsCompPacket> for LootOwner
source§impl TryFrom<EcsCompPacket> for Mass
impl TryFrom<EcsCompPacket> for Mass
source§impl TryFrom<EcsCompPacket> for Object
impl TryFrom<EcsCompPacket> for Object
source§impl TryFrom<EcsCompPacket> for Ori
impl TryFrom<EcsCompPacket> for Ori
source§impl TryFrom<EcsCompPacket> for PickupItem
impl TryFrom<EcsCompPacket> for PickupItem
source§fn try_from(other: EcsCompPacket) -> Result<PickupItem, Self::Error>
fn try_from(other: EcsCompPacket) -> Result<PickupItem, Self::Error>
Performs the conversion.
source§impl TryFrom<EcsCompPacket> for Poise
impl TryFrom<EcsCompPacket> for Poise
source§impl TryFrom<EcsCompPacket> for Pos
impl TryFrom<EcsCompPacket> for Pos
source§impl TryFrom<EcsCompPacket> for Scale
impl TryFrom<EcsCompPacket> for Scale
source§impl TryFrom<EcsCompPacket> for Shockwave
impl TryFrom<EcsCompPacket> for Shockwave
source§impl TryFrom<EcsCompPacket> for SkillSet
impl TryFrom<EcsCompPacket> for SkillSet
source§impl TryFrom<EcsCompPacket> for Stance
impl TryFrom<EcsCompPacket> for Stance
source§impl TryFrom<EcsCompPacket> for Stats
impl TryFrom<EcsCompPacket> for Stats
source§impl TryFrom<EcsCompPacket> for Sticky
impl TryFrom<EcsCompPacket> for Sticky
Auto Trait Implementations§
impl Freeze for EcsCompPacket
impl RefUnwindSafe for EcsCompPacket
impl Send for EcsCompPacket
impl Sync for EcsCompPacket
impl Unpin for EcsCompPacket
impl UnwindSafe for EcsCompPacket
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