Struct veloren_common::mounting::Mounting
source · pub struct Mounting {
pub mount: Uid,
pub rider: Uid,
}
Fields§
§mount: Uid
§rider: Uid
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mounting
impl<'de> Deserialize<'de> for Mounting
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 Mounting
impl Link for Mounting
type CreateData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Mount>, FetchMut<'a, MaskedStorage<Is<Mount>>>>, Storage<'a, Is<Rider>, FetchMut<'a, MaskedStorage<Is<Rider>>>>, Storage<'a, Is<VolumeRider>, Fetch<'a, MaskedStorage<Is<VolumeRider>>>>, Storage<'a, Is<Follower>, Fetch<'a, MaskedStorage<Is<Follower>>>>)
type DeleteData<'a> = (Read<'a, IdMaps>, Storage<'a, Is<Mount>, FetchMut<'a, MaskedStorage<Is<Mount>>>>, Storage<'a, Is<Rider>, FetchMut<'a, MaskedStorage<Is<Rider>>>>, Storage<'a, Pos, FetchMut<'a, MaskedStorage<Pos>>>, Storage<'a, ForceUpdate, FetchMut<'a, MaskedStorage<ForceUpdate>>>, Read<'a, VolGrid2d<Chonk<Block, TerrainChunkSize, TerrainChunkMeta>>, PanicHandler>)
type Error = MountingError
type PersistData<'a> = (Read<'a, IdMaps>, Read<'a, EntitiesRes>, Storage<'a, Health, Fetch<'a, MaskedStorage<Health>>>, Storage<'a, Body, Fetch<'a, MaskedStorage<Body>>>, Storage<'a, Is<Mount>, Fetch<'a, MaskedStorage<Is<Mount>>>>, Storage<'a, Is<Rider>, Fetch<'a, MaskedStorage<Is<Rider>>>>, Storage<'a, CharacterState, Fetch<'a, MaskedStorage<CharacterState>>>)
fn create( this: &LinkHandle<Self>, (id_maps, is_mounts, is_riders, is_volume_rider, is_followers): &mut Self::CreateData<'_>, ) -> Result<(), Self::Error>
fn persist( this: &LinkHandle<Self>, (id_maps, entities, healths, bodies, is_mounts, is_riders, character_states): &mut Self::PersistData<'_>, ) -> bool
fn delete( this: &LinkHandle<Self>, (id_maps, is_mounts, is_riders, positions, force_update, terrain): &mut Self::DeleteData<'_>, )
Auto Trait Implementations§
impl Freeze for Mounting
impl RefUnwindSafe for Mounting
impl Send for Mounting
impl Sync for Mounting
impl Unpin for Mounting
impl UnwindSafe for Mounting
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