#[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 ComponentNetworkReplicationITrait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentI
impl RefUnwindSafe for ComponentI
impl !Send for ComponentI
impl !Sync for ComponentI
impl Unpin for ComponentI
impl UnwindSafe for ComponentI
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