Enum veloren_common::comp::aura::AuraKind
source · pub enum AuraKind {
Buff {
kind: BuffKind,
data: BuffData,
category: BuffCategory,
source: BuffSource,
},
FriendlyFire,
ForcePvP,
}
Expand description
AuraKind is what kind of effect an aura applies Currently only buffs are implemented
Variants§
Buff
The Buff kind is (surprise!) a buff :D
FriendlyFire
Enables free-for-all friendly-fire. Includes group members, and pets. BattleMode checks still apply.
ForcePvP
Ignores the [crate::comp::BattleMode
] of all entities affected by this
aura, only player entities will be affected by this aura.
Trait Implementations§
source§impl AsRef<AuraKindVariant> for AuraKind
impl AsRef<AuraKindVariant> for AuraKind
source§fn as_ref(&self) -> &AuraKindVariant
fn as_ref(&self) -> &AuraKindVariant
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'de> Deserialize<'de> for AuraKind
impl<'de> Deserialize<'de> for AuraKind
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
impl Copy for AuraKind
Auto Trait Implementations§
impl RefUnwindSafe for AuraKind
impl Send for AuraKind
impl Sync for AuraKind
impl Unpin for AuraKind
impl UnwindSafe for AuraKind
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
§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