Struct veloren_common::interaction::Interaction
source · pub struct Interaction {
pub interactor: Uid,
pub target: Uid,
pub kind: InteractionKind,
}
Fields§
§interactor: Uid
§target: Uid
§kind: InteractionKind
Trait Implementations§
source§impl Debug for Interaction
impl Debug for Interaction
source§impl<'de> Deserialize<'de> for Interaction
impl<'de> Deserialize<'de> for Interaction
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 Link for Interaction
impl Link for Interaction
type CreateData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Interactor>, FetchMut<'a, MaskedStorage<Is<Interactor>>>>, Storage<'a, Interactors, FetchMut<'a, MaskedStorage<Interactors>>>, Storage<'a, CharacterState, FetchMut<'a, MaskedStorage<CharacterState>>>, Storage<'a, Health, Fetch<'a, MaskedStorage<Health>>>, Storage<'a, Pos, Fetch<'a, MaskedStorage<Pos>>>, Storage<'a, Alignment, Fetch<'a, MaskedStorage<Alignment>>>)
type DeleteData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Interactor>, FetchMut<'a, MaskedStorage<Is<Interactor>>>>, Storage<'a, Interactors, FetchMut<'a, MaskedStorage<Interactors>>>, Storage<'a, CharacterState, FetchMut<'a, MaskedStorage<CharacterState>>>)
type Error = InteractionError
type PersistData<'a> = (Read<'a, IdMaps>, Read<'a, EntitiesRes>, Storage<'a, Health, Fetch<'a, MaskedStorage<Health>>>, Storage<'a, Is<Interactor>, Fetch<'a, MaskedStorage<Is<Interactor>>>>, Storage<'a, Interactors, Fetch<'a, MaskedStorage<Interactors>>>, Storage<'a, CharacterState, Fetch<'a, MaskedStorage<CharacterState>>>, Storage<'a, Pos, Fetch<'a, MaskedStorage<Pos>>>, Storage<'a, Alignment, Fetch<'a, MaskedStorage<Alignment>>>)
fn create( this: &LinkHandle<Self>, (id_maps, is_interactors, interactors, character_states, healths, positions, alignments): &mut Self::CreateData<'_>, ) -> Result<(), Self::Error>
fn persist( this: &LinkHandle<Self>, (id_maps, entities, healths, is_interactors, interactors, character_states, positions, alignments): &mut Self::PersistData<'_>, ) -> bool
fn delete( this: &LinkHandle<Self>, (id_maps, is_interactors, interactors, character_states): &mut Self::DeleteData<'_>, )
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
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<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