pub enum EntityAppearance {
Show 14 variants
LandPlatform(LandPlatformAppearance),
AirPlatform(AirPlatformAppearance),
SurfacePlatform(SurfacePlatformAppearance),
SubsurfacePlatform(SubsurfacePlatformAppearance),
SpacePlatform(SpacePlatformAppearance),
Munition(MunitionAppearance),
LifeForms(LifeFormsAppearance),
Environmental(EnvironmentalAppearance),
CulturalFeature(CulturalFeatureAppearance),
Supply(SupplyAppearance),
Radio(RadioAppearance),
Expendable(ExpendableAppearance),
SensorEmitter(SensorEmitterAppearance),
Unspecified([u8; 4]),
}Expand description
6.2.26 Entity Appearance record
Variants§
LandPlatform(LandPlatformAppearance)
AirPlatform(AirPlatformAppearance)
SurfacePlatform(SurfacePlatformAppearance)
SubsurfacePlatform(SubsurfacePlatformAppearance)
SpacePlatform(SpacePlatformAppearance)
Munition(MunitionAppearance)
LifeForms(LifeFormsAppearance)
Environmental(EnvironmentalAppearance)
CulturalFeature(CulturalFeatureAppearance)
Supply(SupplyAppearance)
Radio(RadioAppearance)
Expendable(ExpendableAppearance)
SensorEmitter(SensorEmitterAppearance)
Unspecified([u8; 4])
Implementations§
Source§impl EntityAppearance
impl EntityAppearance
pub fn from_bytes(appearance: u32, entity_type: &EntityType) -> Self
pub const fn record_length(&self) -> u16
pub fn state(&self) -> Option<AppearanceEntityOrObjectState>
pub fn is_frozen(&self) -> Option<bool>
Trait Implementations§
Source§impl Clone for EntityAppearance
impl Clone for EntityAppearance
Source§fn clone(&self) -> EntityAppearance
fn clone(&self) -> EntityAppearance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntityAppearance
impl Debug for EntityAppearance
Source§impl Default for EntityAppearance
impl Default for EntityAppearance
Source§impl From<&EntityAppearance> for u32
impl From<&EntityAppearance> for u32
Source§fn from(value: &EntityAppearance) -> Self
fn from(value: &EntityAppearance) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EntityAppearance
impl PartialEq for EntityAppearance
impl Copy for EntityAppearance
impl StructuralPartialEq for EntityAppearance
Auto Trait Implementations§
impl Freeze for EntityAppearance
impl RefUnwindSafe for EntityAppearance
impl Send for EntityAppearance
impl Sync for EntityAppearance
impl Unpin for EntityAppearance
impl UnwindSafe for EntityAppearance
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