pub struct Interaction {
pub interactor: Uid,
pub target: Uid,
pub kind: InteractionKind,
}Fields§
§interactor: Uid§target: Uid§kind: InteractionKindTrait 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 UnsafeUnpin 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Event for T
§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