Enum ark_api::world::EntityValueType
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum EntityValueType {
EntityLocalTransform,
EntityRenderTint,
EntityRenderEnable,
EntityWorldTransform,
EntityLocalBounds,
EntityPhysicsVelocity,
EntityStateFlags,
EntityWorldTransformAffine3,
}
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
EntityLocalTransform
Expects data with the same layout and size as the struct EntityTransform
EntityRenderTint
Expects data with the same layout and size as the struct EntityMeshStyleTint
Will set the tint on all mesh styles that are used by this entity. This assumes
each entity uses its own MeshStyle
.
EntityRenderEnable
Expects data with the same layout and size as the struct EntityRenderEnable
EntityWorldTransform
Expects data with the same layout and size as the struct EntityTransform
EntityLocalBounds
Expects data with the same layout and size as the struct EntityBounds
EntityPhysicsVelocity
Expects data with the same layout and size as the struct EntityVelocity
EntityStateFlags
Expects data with the same layout and size as the struct EntityStateFlags
EntityWorldTransformAffine3
Expects data with the same layout and size as the struct EntityTransformAffine3
Implementations
sourceimpl EntityValueType
impl EntityValueType
pub fn size_of_element(&self) -> u32
Trait Implementations
sourceimpl CheckedBitPattern for EntityValueType
impl CheckedBitPattern for EntityValueType
type Bits = u32
type Bits = u32
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(
bits: &<EntityValueType as CheckedBitPattern>::Bits
) -> bool
fn is_valid_bit_pattern(
bits: &<EntityValueType as CheckedBitPattern>::Bits
) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more
sourceimpl Clone for EntityValueType
impl Clone for EntityValueType
sourcefn clone(&self) -> EntityValueType
fn clone(&self) -> EntityValueType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EntityValueType
impl Debug for EntityValueType
sourceimpl Hash for EntityValueType
impl Hash for EntityValueType
sourceimpl PartialEq<EntityValueType> for EntityValueType
impl PartialEq<EntityValueType> for EntityValueType
sourcefn eq(&self, other: &EntityValueType) -> bool
fn eq(&self, other: &EntityValueType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl TryFrom<u32> for EntityValueType
impl TryFrom<u32> for EntityValueType
type Error = TryFromPrimitiveError<EntityValueType>
type Error = TryFromPrimitiveError<EntityValueType>
The type returned in the event of a conversion error.
sourcefn try_from(
number: u32
) -> Result<EntityValueType, TryFromPrimitiveError<EntityValueType>>
fn try_from(
number: u32
) -> Result<EntityValueType, TryFromPrimitiveError<EntityValueType>>
Performs the conversion.
sourceimpl TryFromPrimitive for EntityValueType
impl TryFromPrimitive for EntityValueType
type Primitive = u32
const NAME: &'static str = "EntityValueType"
fn try_from_primitive(
number: <EntityValueType as TryFromPrimitive>::Primitive
) -> Result<EntityValueType, TryFromPrimitiveError<EntityValueType>>
impl Copy for EntityValueType
impl Eq for EntityValueType
impl NoUninit for EntityValueType
impl StructuralEq for EntityValueType
impl StructuralPartialEq for EntityValueType
Auto Trait Implementations
impl RefUnwindSafe for EntityValueType
impl Send for EntityValueType
impl Sync for EntityValueType
impl Unpin for EntityValueType
impl UnwindSafe for EntityValueType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more