Struct classicube_sys::EntityVTABLE
source · #[repr(C)]pub struct EntityVTABLE {
pub Tick: Option<unsafe extern "C" fn(e: *mut Entity, delta: f32)>,
pub Despawn: Option<unsafe extern "C" fn(e: *mut Entity)>,
pub SetLocation: Option<unsafe extern "C" fn(e: *mut Entity, update: *mut LocationUpdate)>,
pub GetCol: Option<unsafe extern "C" fn(e: *mut Entity) -> PackedCol>,
pub RenderModel: Option<unsafe extern "C" fn(e: *mut Entity, delta: f32, t: f32)>,
pub ShouldRenderName: Option<unsafe extern "C" fn(e: *mut Entity) -> cc_bool>,
}
Fields§
§Tick: Option<unsafe extern "C" fn(e: *mut Entity, delta: f32)>
§Despawn: Option<unsafe extern "C" fn(e: *mut Entity)>
§SetLocation: Option<unsafe extern "C" fn(e: *mut Entity, update: *mut LocationUpdate)>
§GetCol: Option<unsafe extern "C" fn(e: *mut Entity) -> PackedCol>
§RenderModel: Option<unsafe extern "C" fn(e: *mut Entity, delta: f32, t: f32)>
§ShouldRenderName: Option<unsafe extern "C" fn(e: *mut Entity) -> cc_bool>
Trait Implementations§
source§impl Clone for EntityVTABLE
impl Clone for EntityVTABLE
source§fn clone(&self) -> EntityVTABLE
fn clone(&self) -> EntityVTABLE
Returns a copy 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 EntityVTABLE
impl Debug for EntityVTABLE
source§impl Hash for EntityVTABLE
impl Hash for EntityVTABLE
source§impl PartialEq for EntityVTABLE
impl PartialEq for EntityVTABLE
source§fn eq(&self, other: &EntityVTABLE) -> bool
fn eq(&self, other: &EntityVTABLE) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EntityVTABLE
impl Eq for EntityVTABLE
impl StructuralPartialEq for EntityVTABLE
Auto Trait Implementations§
impl Freeze for EntityVTABLE
impl RefUnwindSafe for EntityVTABLE
impl Send for EntityVTABLE
impl Sync for EntityVTABLE
impl Unpin for EntityVTABLE
impl UnwindSafe for EntityVTABLE
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)