Struct classicube_sys::Entity

source ·
#[repr(C)]
pub struct Entity {
Show 31 fields pub VTABLE: *const EntityVTABLE, pub Position: Vec3, pub Pitch: f32, pub Yaw: f32, pub RotX: f32, pub RotY: f32, pub RotZ: f32, pub Velocity: Vec3, pub Model: *mut Model, pub ModelBlock: BlockID, pub Flags: cc_uint8, pub ShouldRender: cc_bool, pub ModelAABB: AABB, pub ModelScale: Vec3, pub Size: Vec3, pub _skinReqID: c_int, pub SkinType: cc_uint8, pub SkinFetchState: cc_uint8, pub NoShade: cc_bool, pub OnGround: cc_bool, pub TextureId: GfxResourceID, pub MobTextureId: GfxResourceID, pub uScale: f32, pub vScale: f32, pub Anim: AnimatedComp, pub SkinRaw: [c_char; 64], pub NameRaw: [c_char; 64], pub NameTex: Texture, pub prev: EntityLocation, pub next: EntityLocation, pub ModelVB: GfxResourceID,
}

Fields§

§VTABLE: *const EntityVTABLE§Position: Vec3§Pitch: f32§Yaw: f32§RotX: f32§RotY: f32§RotZ: f32§Velocity: Vec3§Model: *mut Model§ModelBlock: BlockID§Flags: cc_uint8§ShouldRender: cc_bool§ModelAABB: AABB§ModelScale: Vec3§Size: Vec3§_skinReqID: c_int§SkinType: cc_uint8§SkinFetchState: cc_uint8§NoShade: cc_bool§OnGround: cc_bool§TextureId: GfxResourceID§MobTextureId: GfxResourceID§uScale: f32§vScale: f32§Anim: AnimatedComp§SkinRaw: [c_char; 64]§NameRaw: [c_char; 64]§NameTex: Texture§prev: EntityLocation§next: EntityLocation§ModelVB: GfxResourceID

Trait Implementations§

source§

impl Debug for Entity

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for Entity

source§

fn eq(&self, other: &Entity) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Entity

Auto Trait Implementations§

§

impl Freeze for Entity

§

impl RefUnwindSafe for Entity

§

impl !Send for Entity

§

impl !Sync for Entity

§

impl Unpin for Entity

§

impl UnwindSafe for Entity

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.