Struct EntityCommandsApi

Source
#[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§

Trait Implementations§

Source§

impl Api for EntityCommandsApi

Source§

impl Clone for EntityCommandsApi

Source§

fn clone(&self) -> EntityCommandsApi

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for EntityCommandsApi

Source§

fn default() -> EntityCommandsApi

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

impl Copy for EntityCommandsApi

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.