Struct veloren_common::comp::presence::Presence
source · pub struct Presence {
pub terrain_view_distance: ViewDistance,
pub entity_view_distance: ViewDistance,
pub kind: PresenceKind,
pub lossy_terrain_compression: bool,
}
Fields§
§terrain_view_distance: ViewDistance
§entity_view_distance: ViewDistance
§kind: PresenceKind
If mutating this (or the adding/replacing the Presence component as a
whole), make sure the mapping of CharacterId
in IdMaps
is
updated!
lossy_terrain_compression: bool
Implementations§
source§impl Presence
impl Presence
pub fn new(view_distances: ViewDistances, kind: PresenceKind) -> Self
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnwindSafe for Presence
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