#[repr(C)]pub struct EntityCommandsApi {
pub create_entity_from_mask: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, mask: *const ComponentMaskT) -> EntityCommandEntityHandleT>,
pub batch_create_entity_from_mask: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, mask: *const ComponentMaskT, n: u32, ta: *mut TempAllocatorI) -> *mut EntityCommandEntityHandleT>,
pub create_entity_from_asset: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, asset: TtIdT) -> EntityCommandEntityHandleT>,
pub batch_create_entity_from_asset: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, asset: *mut TtIdT, n: u32, ta: *mut TempAllocatorI) -> *mut EntityCommandEntityHandleT>,
pub destroy_entity: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT)>,
pub batch_destroy_entity: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, es: *const EntityT, n: u32)>,
pub clear_world: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO)>,
pub add_component: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT) -> *mut c_void>,
pub remove_component: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT)>,
pub add_component_by_handle: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityCommandEntityHandleT, component: ComponentTypeT) -> *mut c_void>,
}
Fields§
§create_entity_from_mask: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, mask: *const ComponentMaskT) -> EntityCommandEntityHandleT>
§batch_create_entity_from_mask: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, mask: *const ComponentMaskT, n: u32, ta: *mut TempAllocatorI) -> *mut EntityCommandEntityHandleT>
§create_entity_from_asset: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, asset: TtIdT) -> EntityCommandEntityHandleT>
§batch_create_entity_from_asset: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, asset: *mut TtIdT, n: u32, ta: *mut TempAllocatorI) -> *mut EntityCommandEntityHandleT>
§destroy_entity: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT)>
§batch_destroy_entity: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, es: *const EntityT, n: u32)>
§clear_world: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO)>
§add_component: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT) -> *mut c_void>
§remove_component: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT)>
§add_component_by_handle: Option<unsafe extern "C" fn(commands: *mut EntityCommandsO, e: EntityCommandEntityHandleT, component: ComponentTypeT) -> *mut c_void>
Implementations§
Source§impl EntityCommandsApi
impl EntityCommandsApi
pub unsafe fn create_entity_from_mask( &self, commands: *mut EntityCommandsO, mask: *const ComponentMaskT, ) -> EntityCommandEntityHandleT
pub unsafe fn batch_create_entity_from_mask( &self, commands: *mut EntityCommandsO, mask: *const ComponentMaskT, n: u32, ta: *mut TempAllocatorI, ) -> *mut EntityCommandEntityHandleT
pub unsafe fn create_entity_from_asset( &self, commands: *mut EntityCommandsO, asset: TtIdT, ) -> EntityCommandEntityHandleT
pub unsafe fn batch_create_entity_from_asset( &self, commands: *mut EntityCommandsO, asset: *mut TtIdT, n: u32, ta: *mut TempAllocatorI, ) -> *mut EntityCommandEntityHandleT
pub unsafe fn destroy_entity(&self, commands: *mut EntityCommandsO, e: EntityT)
pub unsafe fn batch_destroy_entity( &self, commands: *mut EntityCommandsO, es: *const EntityT, n: u32, )
pub unsafe fn clear_world(&self, commands: *mut EntityCommandsO)
pub unsafe fn add_component( &self, commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT, ) -> *mut c_void
pub unsafe fn remove_component( &self, commands: *mut EntityCommandsO, e: EntityT, component: ComponentTypeT, )
pub unsafe fn add_component_by_handle( &self, commands: *mut EntityCommandsO, e: EntityCommandEntityHandleT, component: ComponentTypeT, ) -> *mut c_void
Trait Implementations§
Source§impl Clone for EntityCommandsApi
impl Clone for EntityCommandsApi
Source§fn clone(&self) -> EntityCommandsApi
fn clone(&self) -> EntityCommandsApi
Returns a duplicate 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 Default for EntityCommandsApi
impl Default for EntityCommandsApi
Source§fn default() -> EntityCommandsApi
fn default() -> EntityCommandsApi
Returns the “default value” for a type. Read more
impl Copy for EntityCommandsApi
Auto Trait Implementations§
impl Freeze for EntityCommandsApi
impl RefUnwindSafe for EntityCommandsApi
impl Send for EntityCommandsApi
impl Sync for EntityCommandsApi
impl Unpin for EntityCommandsApi
impl UnwindSafe for EntityCommandsApi
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