[−][src]Struct tm_sys::ffi::tm_entity_api
Fields
create_truth_types: Option<unsafe extern "C" fn(tt: *mut tm_the_truth_o)>create_context: Option<unsafe extern "C" fn(a: *mut tm_allocator_i, tt: *mut tm_the_truth_o, create_components: tm_entity_create_components) -> *mut tm_entity_context_o>destroy_context: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>register_component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, com: *const tm_component_i) -> u32>num_components: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> u32>component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, i: u32) -> *const tm_component_i>register_engine: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, engine: *const tm_engine_i)>registered_engines: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, count: *mut u32) -> *mut tm_engine_i>register_system: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, system: *const tm_entity_system_i)>registered_systems: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, count: *mut u32) -> *mut tm_entity_system_i>create_child_allocator: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, name: *const c_char, a: *mut tm_allocator_i)>destroy_child_allocator: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, a: *mut tm_allocator_i)>the_truth: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> *mut tm_the_truth_o>unset_asset_root: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>create_entity: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> tm_entity_t>batch_create_entity: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, es: *mut tm_entity_t, n: u32)>create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, mask: *const tm_component_mask_t) -> tm_entity_t>batch_create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, mask: *const tm_component_mask_t, es: *mut tm_entity_t, n: u32)>create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, asset: tm_tt_id_t) -> tm_entity_t>batch_create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, asset: tm_tt_id_t, es: *mut tm_entity_t, n: u32)>destroy_entity: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t)>batch_destroy_entity: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, es: *const tm_entity_t, n: u32)>destroy_all_entities: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>queue_destroy_entities: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, es: *const tm_entity_t, n: u32)>is_alive: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t) -> bool>num_entities: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o) -> u32>entities_matching: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, mask: *const tm_component_mask_t, ta: *mut tm_temp_allocator_i) -> *mut tm_entity_set_t>flatten_set: Option<unsafe extern "C" fn(entities: *mut tm_entity_t, set: *const tm_entity_set_t)>lookup_component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, name_hash: u64) -> u32>component_manager: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, component: u32) -> *mut tm_component_manager_o>create_component_mask: Option<unsafe extern "C" fn(components: *const u32, n: u32) -> tm_component_mask_t>component_mask: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t) -> *const tm_component_mask_t>add_component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, component: u32) -> *mut c_void>get_component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, component: u32) -> *mut c_void>get_component_by_hash: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, name_hash: u64) -> *mut c_void>remove_component: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, component: u32)>call_remove_on_all_entities: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, component: u32)>parent: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t) -> tm_entity_t>asset: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t) -> tm_tt_id_t>find_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, asset: tm_tt_id_t) -> tm_entity_t>resolve_asset_reference: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, asset: tm_tt_id_t) -> tm_entity_t>resolve_path: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, path: *const c_char) -> tm_entity_t>propagate_asset_changes: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>propagate_listen_to: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, object: tm_tt_id_t)>set_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, id: u64, value: f64)>set_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, id: u64, value: *mut c_void)>has_blackboard: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, id: u64) -> bool>get_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, id: u64, def: f64) -> f64>get_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, id: u64) -> *mut c_void>run_engine: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, engine: *const tm_engine_i)>update: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>listen: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, c: u32, listener: *const tm_entity_listener_i)>unlisten: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, c: u32, listener: *const tm_entity_listener_i)>notify: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, component: u32, entities: *const tm_entity_t, num_entities: u32)>listen_event: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, event: u64, listener: *const tm_entity_event_listener_i)>unlisten_event: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, e: tm_entity_t, event: u64, listener: *const tm_entity_event_listener_i)>unlisten_all: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, instance: *mut c_void)>notify_event: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, event: u64, e: *mut tm_entity_t, entity_stride: u32, data: *mut c_void, data_stride: u32, n: u32)>hot_reload: Option<unsafe extern "C" fn()>set_debug_draw: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, component: u32, tag: u64, debug_draw: bool)>has_debug_draw: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, component: u32, tag: u64) -> bool>clear_debug_draw: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o)>debug_draw: Option<unsafe extern "C" fn(ctx: *mut tm_entity_context_o, pbuf: *mut tm_primitive_drawer_buffer_t, vbuf: *mut tm_primitive_drawer_buffer_t, allocator: *mut tm_allocator_i, camera: *const tm_camera_t, viewport: tm_rect_t)>Trait Implementations
impl Clone for tm_entity_api[src]
pub fn clone(&self) -> tm_entity_api[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for tm_entity_api[src]
impl Debug for tm_entity_api[src]
Auto Trait Implementations
impl RefUnwindSafe for tm_entity_api
impl Send for tm_entity_api
impl Sync for tm_entity_api
impl Unpin for tm_entity_api
impl UnwindSafe for tm_entity_api
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,