ComponentI

Struct ComponentI 

Source
#[repr(C)]
pub struct ComponentI {
Show 18 fields pub name: *const c_char, pub bytes: u32, pub _padding_285: [c_char; 4], pub default_data: *const c_void, pub manager: *mut ComponentManagerO, pub components_created: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO)>, pub load_asset: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void, tt: *const TheTruthO, asset: TtIdT) -> bool>, pub asset_loaded: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>, pub asset_loaded_sort_order: f64, pub asset_reloaded: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>, pub add: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>, pub remove: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>, pub destroy: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO)>, pub debug_draw: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, e: *mut EntityT, data: *mut *const c_void, n: u32, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT)>, pub debug_draw_settings: TtIdT, pub gamestate_representation: *mut ComponentGamestateRepresentationI, pub persistence: *mut ComponentPersistenceI, pub network_replication: *mut ComponentNetworkReplicationI,
}

Fields§

§name: *const c_char§bytes: u32§_padding_285: [c_char; 4]§default_data: *const c_void§manager: *mut ComponentManagerO§components_created: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO)>§load_asset: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void, tt: *const TheTruthO, asset: TtIdT) -> bool>§asset_loaded: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>§asset_loaded_sort_order: f64§asset_reloaded: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>§add: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>§remove: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, commands: *mut EntityCommandsO, e: EntityT, data: *mut c_void)>§destroy: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO)>§debug_draw: Option<unsafe extern "C" fn(manager: *mut ComponentManagerO, e: *mut EntityT, data: *mut *const c_void, n: u32, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT)>§debug_draw_settings: TtIdT§gamestate_representation: *mut ComponentGamestateRepresentationI§persistence: *mut ComponentPersistenceI§network_replication: *mut ComponentNetworkReplicationI

Trait Implementations§

Source§

impl Default for ComponentI

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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>,

Source§

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>,

Source§

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.