EntityApi

Struct EntityApi 

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

Source

pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)

Source

pub unsafe fn create_context( &self, a: *mut AllocatorI, tt: *mut TheTruthO, create_components: EntityCreateComponents, ) -> *mut EntityContextO

Source

pub unsafe fn create_components( &self, ctx: *mut EntityContextO, create_components: EntityCreateComponents, )

Source

pub unsafe fn destroy_context(&self, ctx: *mut EntityContextO)

Source

pub unsafe fn register_component( &self, ctx: *mut EntityContextO, com: *const ComponentI, ) -> ComponentTypeT

Source

pub unsafe fn disable_component( &self, ctx: *mut EntityContextO, component_hash: StrhashT, )

Source

pub unsafe fn num_components(&self, ctx: *mut EntityContextO) -> u32

Source

pub unsafe fn component( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, ) -> *const ComponentI

Source

pub unsafe fn register_engine( &self, ctx: *mut EntityContextO, engine: *const EngineI, )

Source

pub unsafe fn remove_engine( &self, ctx: *mut EntityContextO, engine_hash: StrhashT, )

Source

pub unsafe fn registered_engines( &self, ctx: *mut EntityContextO, count: *mut u32, ) -> *mut EngineI

Source

pub unsafe fn register_system( &self, ctx: *mut EntityContextO, system: *const EntitySystemI, )

Source

pub unsafe fn remove_system( &self, ctx: *mut EntityContextO, system_hash: StrhashT, )

Source

pub unsafe fn registered_systems( &self, ctx: *mut EntityContextO, count: *mut u32, ) -> *mut EntitySystemI

Source

pub unsafe fn create_child_allocator( &self, ctx: *mut EntityContextO, name: *const c_char, a: *mut AllocatorI, )

Source

pub unsafe fn destroy_child_allocator( &self, ctx: *mut EntityContextO, a: *mut AllocatorI, )

Source

pub unsafe fn the_truth(&self, ctx: *mut EntityContextO) -> *mut TheTruthO

Source

pub unsafe fn create_entity(&self, ctx: *mut EntityContextO) -> EntityT

Source

pub unsafe fn batch_create_entity( &self, ctx: *mut EntityContextO, es: *mut EntityT, n: u32, )

Source

pub unsafe fn create_entity_from_mask( &self, ctx: *mut EntityContextO, mask: *const ComponentMaskT, ) -> EntityT

Source

pub unsafe fn batch_create_entity_from_mask( &self, ctx: *mut EntityContextO, mask: *const ComponentMaskT, es: *mut EntityT, n: u32, )

Source

pub unsafe fn create_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, ) -> EntityT

Source

pub unsafe fn batch_create_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, es: *mut EntityT, n: u32, )

Source

pub unsafe fn destroy_entity(&self, ctx: *mut EntityContextO, e: EntityT)

Source

pub unsafe fn batch_destroy_entity( &self, ctx: *mut EntityContextO, es: *const EntityT, n: u32, )

Source

pub unsafe fn clear_world(&self, ctx: *mut EntityContextO)

Source

pub unsafe fn queue_destroy_entities( &self, ctx: *mut EntityContextO, es: *const EntityT, n: u32, )

Source

pub unsafe fn is_alive(&self, ctx: *mut EntityContextO, e: EntityT) -> bool

Source

pub unsafe fn num_entities(&self, ctx: *mut EntityContextO) -> u32

Source

pub unsafe fn entities_matching( &self, ctx: *mut EntityContextO, required: *const ComponentMaskT, ta: *mut TempAllocatorI, ) -> *mut EntitySetT

Source

pub unsafe fn entities_matching_with_forbidden( &self, ctx: *mut EntityContextO, required: *const ComponentMaskT, forbidden: *const ComponentMaskT, ta: *mut TempAllocatorI, ) -> *mut EntitySetT

Source

pub unsafe fn flatten_set(&self, entities: *mut EntityT, set: *const EntitySetT)

Source

pub unsafe fn lookup_component_type( &self, ctx: *mut EntityContextO, name_hash: StrhashT, ) -> ComponentTypeT

Source

pub unsafe fn component_manager( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, ) -> *mut ComponentManagerO

Source

pub unsafe fn component_manager_by_hash( &self, ctx: *mut EntityContextO, name_hash: StrhashT, ) -> *mut ComponentManagerO

Source

pub unsafe fn create_component_mask( &self, components: *const ComponentTypeT, n: u32, ) -> ComponentMaskT

Source

pub unsafe fn component_mask( &self, ctx: *mut EntityContextO, e: EntityT, ) -> *const ComponentMaskT

Source

pub unsafe fn add_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, ) -> *mut c_void

Source

pub unsafe fn get_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, ) -> *mut c_void

Source

pub unsafe fn get_component_by_hash( &self, ctx: *mut EntityContextO, e: EntityT, name_hash: StrhashT, ) -> *mut c_void

Source

pub unsafe fn remove_component( &self, ctx: *mut EntityContextO, e: EntityT, component: ComponentTypeT, )

Source

pub unsafe fn call_remove_on_all_entities( &self, ctx: *mut EntityContextO, component: ComponentTypeT, )

Source

pub unsafe fn asset_parent( &self, ctx: *mut EntityContextO, e: EntityT, ) -> EntityT

Source

pub unsafe fn children( &self, ctx: *mut EntityContextO, e: EntityT, ta: *mut TempAllocatorI, ) -> *mut EntityT

Source

pub unsafe fn asset(&self, ctx: *mut EntityContextO, e: EntityT) -> TtIdT

Source

pub unsafe fn find_entity_from_asset( &self, ctx: *mut EntityContextO, asset: TtIdT, ) -> EntityT

Source

pub unsafe fn resolve_asset_reference( &self, ctx: *mut EntityContextO, e: EntityT, asset: TtIdT, ) -> EntityT

Source

pub unsafe fn resolve_path( &self, ctx: *mut EntityContextO, e: EntityT, path: *const c_char, ) -> EntityT

Source

pub unsafe fn propagate_asset_changes(&self, ctx: *mut EntityContextO)

Source

pub unsafe fn propagate_listen_to( &self, ctx: *mut EntityContextO, e: EntityT, object: TtIdT, )

Source

pub unsafe fn set_blackboard_double( &self, ctx: *mut EntityContextO, id: StrhashT, value: f64, )

Source

pub unsafe fn set_blackboard_ptr( &self, ctx: *mut EntityContextO, id: StrhashT, value: *mut c_void, )

Source

pub unsafe fn has_blackboard( &self, ctx: *mut EntityContextO, id: StrhashT, ) -> bool

Source

pub unsafe fn get_blackboard_double( &self, ctx: *mut EntityContextO, id: StrhashT, def: f64, ) -> f64

Source

pub unsafe fn get_blackboard_ptr( &self, ctx: *mut EntityContextO, id: StrhashT, ) -> *mut c_void

Source

pub unsafe fn run_engine( &self, ctx: *mut EntityContextO, engine: *const EngineI, )

Source

pub unsafe fn run_engine_with_commands( &self, ctx: *mut EntityContextO, engine: *const EngineI, commands: *mut EntityCommandsO, )

Source

pub unsafe fn update(&self, ctx: *mut EntityContextO)

Source

pub unsafe fn listen( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI, )

Source

pub unsafe fn unlisten( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, listener: *const EntityListenerI, )

Source

pub unsafe fn notify( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, entities: *const EntityT, num_entities: u32, )

Source

pub unsafe fn listen_event( &self, ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI, )

Source

pub unsafe fn unlisten_event( &self, ctx: *mut EntityContextO, e: EntityT, event: StrhashT, listener: *const EntityEventListenerI, )

Source

pub unsafe fn unlisten_all( &self, ctx: *mut EntityContextO, instance: *mut c_void, )

Source

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, )

Source

pub unsafe fn hot_reload(&self)

Source

pub unsafe fn set_debug_draw( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT, debug_draw: bool, )

Source

pub unsafe fn get_all_debug_draws( &self, ctx: *mut EntityContextO, component_types: *mut *mut ComponentTypeT, tags: *mut *mut StrhashT, ta: *mut TempAllocatorI, )

Source

pub unsafe fn has_debug_draw( &self, ctx: *mut EntityContextO, component_type: ComponentTypeT, tag: StrhashT, ) -> bool

Source

pub unsafe fn clear_debug_draw(&self, ctx: *mut EntityContextO)

Source

pub unsafe fn debug_draw( &self, ctx: *mut EntityContextO, pbuf: *mut PrimitiveDrawerBufferT, vbuf: *mut PrimitiveDrawerBufferT, allocator: *mut AllocatorI, camera: *const CameraT, viewport: RectT, )

Source

pub unsafe fn gamestate(&self, ctx: *mut EntityContextO) -> *mut GamestateO

Source

pub unsafe fn override_component_persistence( &self, ctx: *mut EntityContextO, c: ComponentTypeT, persistence: *mut ComponentPersistenceI, )

Source

pub unsafe fn override_component_network_replication( &self, ctx: *mut EntityContextO, c: ComponentTypeT, replication: *mut ComponentNetworkReplicationI, )

Source

pub unsafe fn propagate_persistence_changes_to_gamestate( &self, ctx: *mut EntityContextO, )

Source

pub unsafe fn propagate_network_replication_changes_to_gamestate( &self, ctx: *mut EntityContextO, )

Source

pub unsafe fn ensure_entity_is_persistent( &self, ctx: *mut EntityContextO, e: EntityT, )

Source

pub unsafe fn ensure_entity_is_replicated( &self, ctx: *mut EntityContextO, e: EntityT, )

Source

pub unsafe fn get_entity_persistent_id( &self, ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT, ) -> bool

Source

pub unsafe fn get_entity_network_id( &self, ctx: *mut EntityContextO, e: EntityT, output: *mut GamestateObjectIdT, ) -> bool

Source

pub unsafe fn get_component_persistent_id( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT, ) -> bool

Source

pub unsafe fn get_component_network_id( &self, ctx: *mut EntityContextO, e: EntityT, c: ComponentTypeT, output: *mut GamestateStructIdT, ) -> bool

Source

pub unsafe fn lookup_entity_from_gamestate_id( &self, ctx: *mut EntityContextO, id: *const GamestateObjectIdT, ) -> EntityT

Trait Implementations§

Source§

impl Api for EntityApi

Source§

impl Clone for EntityApi

Source§

fn clone(&self) -> EntityApi

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 EntityApi

Source§

fn default() -> EntityApi

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

impl Copy for EntityApi

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.