Enum veloren_common::comp::aura::AuraTarget
source · pub enum AuraTarget {
GroupOf(Uid),
NotGroupOf(Uid),
All,
}
Expand description
Used by the aura system to filter entities when applying an effect.
Variants§
GroupOf(Uid)
Targets the group of the entity specified by the Uid
. This is useful
for auras which should only affect a player’s party.
NotGroupOf(Uid)
Targets everyone not in the group of the entity specified by the Uid
.
This is useful for auras which should only affect a player’s
enemies.
All
Targets all entities. This is for auras which are global or neutral.
Trait Implementations§
source§impl Clone for AuraTarget
impl Clone for AuraTarget
source§fn clone(&self) -> AuraTarget
fn clone(&self) -> AuraTarget
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 Debug for AuraTarget
impl Debug for AuraTarget
source§impl<'de> Deserialize<'de> for AuraTarget
impl<'de> Deserialize<'de> for AuraTarget
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<(Option<GroupTarget>, Option<&Uid>)> for AuraTarget
impl From<(Option<GroupTarget>, Option<&Uid>)> for AuraTarget
source§impl Serialize for AuraTarget
impl Serialize for AuraTarget
impl Copy for AuraTarget
Auto Trait Implementations§
impl RefUnwindSafe for AuraTarget
impl Send for AuraTarget
impl Sync for AuraTarget
impl Unpin for AuraTarget
impl UnwindSafe for AuraTarget
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