Struct veloren_common::mounting::VolumeMounting
source · pub struct VolumeMounting {
pub pos: VolumePos,
pub block: Block,
pub rider: Uid,
}
Fields§
§pos: VolumePos
§block: Block
§rider: Uid
Implementations§
source§impl VolumeMounting
impl VolumeMounting
pub fn is_steering_entity(&self) -> bool
Trait Implementations§
source§impl Debug for VolumeMounting
impl Debug for VolumeMounting
source§impl<'de> Deserialize<'de> for VolumeMounting
impl<'de> Deserialize<'de> for VolumeMounting
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 VolumeMounting
impl Link for VolumeMounting
type CreateData<'a> = (Write<'a, VolumeRiders>, Storage<'a, VolumeRiders, FetchMut<'a, MaskedStorage<VolumeRiders>>>, Storage<'a, Is<VolumeRider>, FetchMut<'a, MaskedStorage<Is<VolumeRider>>>>, Storage<'a, Is<Rider>, Fetch<'a, MaskedStorage<Is<Rider>>>>, Read<'a, VolGrid2d<Chonk<Block, TerrainChunkSize, TerrainChunkMeta>>, PanicHandler>, Read<'a, IdMaps>, Storage<'a, Collider, Fetch<'a, MaskedStorage<Collider>>>)
type DeleteData<'a> = (Write<'a, VolumeRiders>, Storage<'a, VolumeRiders, FetchMut<'a, MaskedStorage<VolumeRiders>>>, Storage<'a, Is<VolumeRider>, FetchMut<'a, MaskedStorage<Is<VolumeRider>>>>, Read<'a, IdMaps>)
type Error = MountingError
type PersistData<'a> = (Read<'a, EntitiesRes>, Storage<'a, Health, Fetch<'a, MaskedStorage<Health>>>, Read<'a, VolumeRiders>, Storage<'a, VolumeRiders, Fetch<'a, MaskedStorage<VolumeRiders>>>, Storage<'a, Is<VolumeRider>, Fetch<'a, MaskedStorage<Is<VolumeRider>>>>, Read<'a, VolGrid2d<Chonk<Block, TerrainChunkSize, TerrainChunkMeta>>, PanicHandler>, Read<'a, IdMaps>, Storage<'a, Collider, Fetch<'a, MaskedStorage<Collider>>>)
fn create( this: &LinkHandle<Self>, (terrain_riders, volume_riders, is_volume_riders, is_riders, terrain_grid, id_maps, colliders): &mut Self::CreateData<'_>, ) -> Result<(), Self::Error>
fn persist( this: &LinkHandle<Self>, (entities, healths, terrain_riders, volume_riders, is_volume_riders, terrain_grid, id_maps, colliders): &mut Self::PersistData<'_>, ) -> bool
fn delete( this: &LinkHandle<Self>, (terrain_riders, volume_riders, is_rider, id_maps): &mut Self::DeleteData<'_>, )
Auto Trait Implementations§
impl Freeze for VolumeMounting
impl RefUnwindSafe for VolumeMounting
impl Send for VolumeMounting
impl Sync for VolumeMounting
impl Unpin for VolumeMounting
impl UnwindSafe for VolumeMounting
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