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 PartialEq for Entity
impl PartialEq for Entity
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> 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