#[repr(C)]pub struct EntityApi {Show 83 fields
pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub create_context: Option<unsafe extern "C" fn(a: *mut AllocatorI, tt: *mut TheTruthO, create_components: EntityCreateComponents) -> *mut EntityContextO>,
pub create_components: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, create_components: EntityCreateComponents)>,
pub destroy_context: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub register_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, com: *const ComponentI) -> ComponentTypeT>,
pub disable_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_hash: StrhashT)>,
pub num_components: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> u32>,
pub component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT) -> *const ComponentI>,
pub register_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI)>,
pub remove_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine_hash: StrhashT)>,
pub registered_engines: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, count: *mut u32) -> *mut EngineI>,
pub register_system: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, system: *const EntitySystemI)>,
pub remove_system: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, system_hash: StrhashT)>,
pub registered_systems: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, count: *mut u32) -> *mut EntitySystemI>,
pub create_child_allocator: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name: *const c_char, a: *mut AllocatorI)>,
pub destroy_child_allocator: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, a: *mut AllocatorI)>,
pub the_truth: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> *mut TheTruthO>,
pub create_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> EntityT>,
pub batch_create_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *mut EntityT, n: u32)>,
pub create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, mask: *const ComponentMaskT) -> EntityT>,
pub batch_create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, mask: *const ComponentMaskT, es: *mut EntityT, n: u32)>,
pub create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT) -> EntityT>,
pub batch_create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT, es: *mut EntityT, n: u32)>,
pub destroy_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>,
pub batch_destroy_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *const EntityT, n: u32)>,
pub clear_world: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub queue_destroy_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *const EntityT, n: u32)>,
pub is_alive: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> bool>,
pub num_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> u32>,
pub entities_matching: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, required: *const ComponentMaskT, ta: *mut TempAllocatorI) -> *mut EntitySetT>,
pub entities_matching_with_forbidden: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, required: *const ComponentMaskT, forbidden: *const ComponentMaskT, ta: *mut TempAllocatorI) -> *mut EntitySetT>,
pub flatten_set: Option<unsafe extern "C" fn(entities: *mut EntityT, set: *const EntitySetT)>,
pub lookup_component_type: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name_hash: StrhashT) -> ComponentTypeT>,
pub component_manager: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT) -> *mut ComponentManagerO>,
pub component_manager_by_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name_hash: StrhashT) -> *mut ComponentManagerO>,
pub create_component_mask: Option<unsafe extern "C" fn(components: *const ComponentTypeT, n: u32) -> ComponentMaskT>,
pub component_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> *const ComponentMaskT>,
pub add_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT) -> *mut c_void>,
pub get_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT) -> *mut c_void>,
pub get_component_by_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, name_hash: StrhashT) -> *mut c_void>,
pub remove_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT)>,
pub call_remove_on_all_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component: ComponentTypeT)>,
pub asset_parent: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> EntityT>,
pub children: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, ta: *mut TempAllocatorI) -> *mut EntityT>,
pub asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> TtIdT>,
pub find_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT) -> EntityT>,
pub resolve_asset_reference: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, asset: TtIdT) -> EntityT>,
pub resolve_path: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, path: *const c_char) -> EntityT>,
pub propagate_asset_changes: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub propagate_listen_to: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, object: TtIdT)>,
pub set_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, value: f64)>,
pub set_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, value: *mut c_void)>,
pub has_blackboard: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT) -> bool>,
pub get_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, def: f64) -> f64>,
pub get_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT) -> *mut c_void>,
pub run_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI)>,
pub run_engine_with_commands: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI, commands: *mut EntityCommandsO)>,
pub update: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub listen: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI)>,
pub unlisten: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI)>,
pub notify: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT, entities: *const EntityT, num_entities: u32)>,
pub listen_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI)>,
pub unlisten_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI)>,
pub unlisten_all: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, instance: *mut c_void)>,
pub notify_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT, e: *mut EntityT, entity_stride: u32, data: *mut c_void, data_stride: u32, n: u32)>,
pub hot_reload: Option<unsafe extern "C" fn()>,
pub set_debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT, debug_draw: bool)>,
pub get_all_debug_draws: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_types: *mut *mut ComponentTypeT, tags: *mut *mut StrhashT, ta: *mut TempAllocatorI)>,
pub has_debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT) -> bool>,
pub clear_debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT)>,
pub gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> *mut GamestateO>,
pub override_component_persistence: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, c: ComponentTypeT, persistence: *mut ComponentPersistenceI)>,
pub override_component_network_replication: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, c: ComponentTypeT, replication: *mut ComponentNetworkReplicationI)>,
pub propagate_persistence_changes_to_gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub propagate_network_replication_changes_to_gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub ensure_entity_is_persistent: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>,
pub ensure_entity_is_replicated: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>,
pub get_entity_persistent_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT) -> bool>,
pub get_entity_network_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT) -> bool>,
pub get_component_persistent_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT) -> bool>,
pub get_component_network_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT) -> bool>,
pub lookup_entity_from_gamestate_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: *const GamestateObjectIdT) -> EntityT>,
}
Fields§
§create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§create_context: Option<unsafe extern "C" fn(a: *mut AllocatorI, tt: *mut TheTruthO, create_components: EntityCreateComponents) -> *mut EntityContextO>
§create_components: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, create_components: EntityCreateComponents)>
§destroy_context: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§register_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, com: *const ComponentI) -> ComponentTypeT>
§disable_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_hash: StrhashT)>
§num_components: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> u32>
§component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT) -> *const ComponentI>
§register_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI)>
§remove_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine_hash: StrhashT)>
§registered_engines: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, count: *mut u32) -> *mut EngineI>
§register_system: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, system: *const EntitySystemI)>
§remove_system: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, system_hash: StrhashT)>
§registered_systems: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, count: *mut u32) -> *mut EntitySystemI>
§create_child_allocator: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name: *const c_char, a: *mut AllocatorI)>
§destroy_child_allocator: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, a: *mut AllocatorI)>
§the_truth: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> *mut TheTruthO>
§create_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> EntityT>
§batch_create_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *mut EntityT, n: u32)>
§create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, mask: *const ComponentMaskT) -> EntityT>
§batch_create_entity_from_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, mask: *const ComponentMaskT, es: *mut EntityT, n: u32)>
§create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT) -> EntityT>
§batch_create_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT, es: *mut EntityT, n: u32)>
§destroy_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>
§batch_destroy_entity: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *const EntityT, n: u32)>
§clear_world: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§queue_destroy_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, es: *const EntityT, n: u32)>
§is_alive: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> bool>
§num_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> u32>
§entities_matching: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, required: *const ComponentMaskT, ta: *mut TempAllocatorI) -> *mut EntitySetT>
§entities_matching_with_forbidden: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, required: *const ComponentMaskT, forbidden: *const ComponentMaskT, ta: *mut TempAllocatorI) -> *mut EntitySetT>
§flatten_set: Option<unsafe extern "C" fn(entities: *mut EntityT, set: *const EntitySetT)>
§lookup_component_type: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name_hash: StrhashT) -> ComponentTypeT>
§component_manager: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT) -> *mut ComponentManagerO>
§component_manager_by_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, name_hash: StrhashT) -> *mut ComponentManagerO>
§create_component_mask: Option<unsafe extern "C" fn(components: *const ComponentTypeT, n: u32) -> ComponentMaskT>
§component_mask: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> *const ComponentMaskT>
§add_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT) -> *mut c_void>
§get_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT) -> *mut c_void>
§get_component_by_hash: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, name_hash: StrhashT) -> *mut c_void>
§remove_component: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT)>
§call_remove_on_all_entities: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component: ComponentTypeT)>
§asset_parent: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> EntityT>
§children: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, ta: *mut TempAllocatorI) -> *mut EntityT>
§asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT) -> TtIdT>
§find_entity_from_asset: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, asset: TtIdT) -> EntityT>
§resolve_asset_reference: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, asset: TtIdT) -> EntityT>
§resolve_path: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, path: *const c_char) -> EntityT>
§propagate_asset_changes: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§propagate_listen_to: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, object: TtIdT)>
§set_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, value: f64)>
§set_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, value: *mut c_void)>
§has_blackboard: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT) -> bool>
§get_blackboard_double: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT, def: f64) -> f64>
§get_blackboard_ptr: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: StrhashT) -> *mut c_void>
§run_engine: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI)>
§run_engine_with_commands: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, engine: *const EngineI, commands: *mut EntityCommandsO)>
§update: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§listen: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI)>
§unlisten: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI)>
§notify: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT, entities: *const EntityT, num_entities: u32)>
§listen_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI)>
§unlisten_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI)>
§unlisten_all: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, instance: *mut c_void)>
§notify_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT, e: *mut EntityT, 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 EntityContextO, component_type: ComponentTypeT, tag: StrhashT, debug_draw: bool)>
§get_all_debug_draws: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_types: *mut *mut ComponentTypeT, tags: *mut *mut StrhashT, ta: *mut TempAllocatorI)>
§has_debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT) -> bool>
§clear_debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§debug_draw: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT)>
§gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO) -> *mut GamestateO>
§override_component_persistence: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, c: ComponentTypeT, persistence: *mut ComponentPersistenceI)>
§override_component_network_replication: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, c: ComponentTypeT, replication: *mut ComponentNetworkReplicationI)>
§propagate_persistence_changes_to_gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§propagate_network_replication_changes_to_gamestate: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§ensure_entity_is_persistent: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>
§ensure_entity_is_replicated: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT)>
§get_entity_persistent_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT) -> bool>
§get_entity_network_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT) -> bool>
§get_component_persistent_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT) -> bool>
§get_component_network_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT) -> bool>
§lookup_entity_from_gamestate_id: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, id: *const GamestateObjectIdT) -> EntityT>
Implementations§
Source§impl EntityApi
impl EntityApi
pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)
pub unsafe fn create_context( &self, a: *mut AllocatorI, tt: *mut TheTruthO, create_components: EntityCreateComponents, ) -> *mut EntityContextO
pub unsafe fn create_components( &self, ctx: *mut EntityContextO, create_components: EntityCreateComponents, )
pub unsafe fn destroy_context(&self, ctx: *mut EntityContextO)
pub unsafe fn register_component( &self, ctx: *mut EntityContextO, com: *const ComponentI, ) -> ComponentTypeT
pub unsafe fn disable_component( &self, ctx: *mut EntityContextO, component_hash: StrhashT, )
pub unsafe fn num_components(&self, ctx: *mut EntityContextO) -> u32
pub unsafe fn component( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, ) -> *const ComponentI
pub unsafe fn register_engine( &self, ctx: *mut EntityContextO, engine: *const EngineI, )
pub unsafe fn remove_engine( &self, ctx: *mut EntityContextO, engine_hash: StrhashT, )
pub unsafe fn registered_engines( &self, ctx: *mut EntityContextO, count: *mut u32, ) -> *mut EngineI
pub unsafe fn register_system( &self, ctx: *mut EntityContextO, system: *const EntitySystemI, )
pub unsafe fn remove_system( &self, ctx: *mut EntityContextO, system_hash: StrhashT, )
pub unsafe fn registered_systems( &self, ctx: *mut EntityContextO, count: *mut u32, ) -> *mut EntitySystemI
pub unsafe fn create_child_allocator( &self, ctx: *mut EntityContextO, name: *const c_char, a: *mut AllocatorI, )
pub unsafe fn destroy_child_allocator( &self, ctx: *mut EntityContextO, a: *mut AllocatorI, )
pub unsafe fn the_truth(&self, ctx: *mut EntityContextO) -> *mut TheTruthO
pub unsafe fn create_entity(&self, ctx: *mut EntityContextO) -> EntityT
pub unsafe fn batch_create_entity( &self, ctx: *mut EntityContextO, es: *mut EntityT, n: u32, )
pub unsafe fn create_entity_from_mask( &self, ctx: *mut EntityContextO, mask: *const ComponentMaskT, ) -> EntityT
pub unsafe fn batch_create_entity_from_mask( &self, ctx: *mut EntityContextO, mask: *const ComponentMaskT, es: *mut EntityT, n: u32, )
pub unsafe fn create_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, ) -> EntityT
pub unsafe fn batch_create_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, es: *mut EntityT, n: u32, )
pub unsafe fn destroy_entity(&self, ctx: *mut EntityContextO, e: EntityT)
pub unsafe fn batch_destroy_entity( &self, ctx: *mut EntityContextO, es: *const EntityT, n: u32, )
pub unsafe fn clear_world(&self, ctx: *mut EntityContextO)
pub unsafe fn queue_destroy_entities( &self, ctx: *mut EntityContextO, es: *const EntityT, n: u32, )
pub unsafe fn is_alive(&self, ctx: *mut EntityContextO, e: EntityT) -> bool
pub unsafe fn num_entities(&self, ctx: *mut EntityContextO) -> u32
pub unsafe fn entities_matching( &self, ctx: *mut EntityContextO, required: *const ComponentMaskT, ta: *mut TempAllocatorI, ) -> *mut EntitySetT
pub unsafe fn entities_matching_with_forbidden( &self, ctx: *mut EntityContextO, required: *const ComponentMaskT, forbidden: *const ComponentMaskT, ta: *mut TempAllocatorI, ) -> *mut EntitySetT
pub unsafe fn flatten_set(&self, entities: *mut EntityT, set: *const EntitySetT)
pub unsafe fn lookup_component_type( &self, ctx: *mut EntityContextO, name_hash: StrhashT, ) -> ComponentTypeT
pub unsafe fn component_manager( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, ) -> *mut ComponentManagerO
pub unsafe fn component_manager_by_hash( &self, ctx: *mut EntityContextO, name_hash: StrhashT, ) -> *mut ComponentManagerO
pub unsafe fn create_component_mask( &self, components: *const ComponentTypeT, n: u32, ) -> ComponentMaskT
pub unsafe fn component_mask( &self, ctx: *mut EntityContextO, e: EntityT, ) -> *const ComponentMaskT
pub unsafe fn add_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, ) -> *mut c_void
pub unsafe fn get_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, ) -> *mut c_void
pub unsafe fn get_component_by_hash( &self, ctx: *mut EntityContextO, e: EntityT, name_hash: StrhashT, ) -> *mut c_void
pub unsafe fn remove_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, )
pub unsafe fn call_remove_on_all_entities( &self, ctx: *mut EntityContextO, component: ComponentTypeT, )
pub unsafe fn asset_parent( &self, ctx: *mut EntityContextO, e: EntityT, ) -> EntityT
pub unsafe fn children( &self, ctx: *mut EntityContextO, e: EntityT, ta: *mut TempAllocatorI, ) -> *mut EntityT
pub unsafe fn asset(&self, ctx: *mut EntityContextO, e: EntityT) -> TtIdT
pub unsafe fn find_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, ) -> EntityT
pub unsafe fn resolve_asset_reference( &self, ctx: *mut EntityContextO, e: EntityT, asset: TtIdT, ) -> EntityT
pub unsafe fn resolve_path( &self, ctx: *mut EntityContextO, e: EntityT, path: *const c_char, ) -> EntityT
pub unsafe fn propagate_asset_changes(&self, ctx: *mut EntityContextO)
pub unsafe fn propagate_listen_to( &self, ctx: *mut EntityContextO, e: EntityT, object: TtIdT, )
pub unsafe fn set_blackboard_double( &self, ctx: *mut EntityContextO, id: StrhashT, value: f64, )
pub unsafe fn set_blackboard_ptr( &self, ctx: *mut EntityContextO, id: StrhashT, value: *mut c_void, )
pub unsafe fn has_blackboard( &self, ctx: *mut EntityContextO, id: StrhashT, ) -> bool
pub unsafe fn get_blackboard_double( &self, ctx: *mut EntityContextO, id: StrhashT, def: f64, ) -> f64
pub unsafe fn get_blackboard_ptr( &self, ctx: *mut EntityContextO, id: StrhashT, ) -> *mut c_void
pub unsafe fn run_engine( &self, ctx: *mut EntityContextO, engine: *const EngineI, )
pub unsafe fn run_engine_with_commands( &self, ctx: *mut EntityContextO, engine: *const EngineI, commands: *mut EntityCommandsO, )
pub unsafe fn update(&self, ctx: *mut EntityContextO)
pub unsafe fn listen( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI, )
pub unsafe fn unlisten( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI, )
pub unsafe fn notify( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, entities: *const EntityT, num_entities: u32, )
pub unsafe fn listen_event( &self, ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI, )
pub unsafe fn unlisten_event( &self, ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI, )
pub unsafe fn unlisten_all( &self, ctx: *mut EntityContextO, instance: *mut c_void, )
pub unsafe fn notify_event( &self, ctx: *mut EntityContextO, event: StrhashT, e: *mut EntityT, entity_stride: u32, data: *mut c_void, data_stride: u32, n: u32, )
pub unsafe fn hot_reload(&self)
pub unsafe fn set_debug_draw( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT, debug_draw: bool, )
pub unsafe fn get_all_debug_draws( &self, ctx: *mut EntityContextO, component_types: *mut *mut ComponentTypeT, tags: *mut *mut StrhashT, ta: *mut TempAllocatorI, )
pub unsafe fn has_debug_draw( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT, ) -> bool
pub unsafe fn clear_debug_draw(&self, ctx: *mut EntityContextO)
pub unsafe fn debug_draw( &self, ctx: *mut EntityContextO, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT, )
pub unsafe fn gamestate(&self, ctx: *mut EntityContextO) -> *mut GamestateO
pub unsafe fn override_component_persistence( &self, ctx: *mut EntityContextO, c: ComponentTypeT, persistence: *mut ComponentPersistenceI, )
pub unsafe fn override_component_network_replication( &self, ctx: *mut EntityContextO, c: ComponentTypeT, replication: *mut ComponentNetworkReplicationI, )
pub unsafe fn propagate_persistence_changes_to_gamestate( &self, ctx: *mut EntityContextO, )
pub unsafe fn propagate_network_replication_changes_to_gamestate( &self, ctx: *mut EntityContextO, )
pub unsafe fn ensure_entity_is_persistent( &self, ctx: *mut EntityContextO, e: EntityT, )
pub unsafe fn ensure_entity_is_replicated( &self, ctx: *mut EntityContextO, e: EntityT, )
pub unsafe fn get_entity_persistent_id( &self, ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT, ) -> bool
pub unsafe fn get_entity_network_id( &self, ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT, ) -> bool
pub unsafe fn get_component_persistent_id( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT, ) -> bool
pub unsafe fn get_component_network_id( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT, ) -> bool
pub unsafe fn lookup_entity_from_gamestate_id( &self, ctx: *mut EntityContextO, id: *const GamestateObjectIdT, ) -> EntityT
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EntityApi
impl RefUnwindSafe for EntityApi
impl Send for EntityApi
impl Sync for EntityApi
impl Unpin for EntityApi
impl UnwindSafe for EntityApi
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