Struct machinery_api::plugins::creation_graph::CreationGraphApi[][src]

#[repr(C)]
pub struct CreationGraphApi {
Show 24 fields pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>, pub asset_browser_create_interface: Option<unsafe extern "C" fn() -> *mut AssetBrowserCreateAssetI>, pub create_instance: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT) -> CreationGraphInstanceT>, pub destroy_instance: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>, pub invalidate: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT)>, pub write_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT)>, pub read_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT) -> bool>, pub remove_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT)>, pub lock_resource_cache: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> *mut CreationGraphNodeCacheT>, pub unlock_resource_cache: Option<unsafe extern "C" fn(cache: *mut CreationGraphNodeCacheT)>, pub add_listener: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, object: TtIdT)>, pub tick_queue: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT)>, pub has_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT) -> bool>, pub trigger_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT)>, pub update_interface: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT)>, pub lookup_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> CachedNodeResultT>, pub set_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT)>, pub output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT) -> CreationGraphOutputT>, pub all_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT) -> CreationGraphAllOutputsT>, pub refresh_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>, pub named_output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT) -> CreationGraphNamedOutputT>, pub gather_stripped_graph: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT)>, pub get_instances_from_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, entity: EntityT, component_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut *mut CreationGraphInstanceT>, pub set_input_value: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32)>,
}

Fields

create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>asset_browser_create_interface: Option<unsafe extern "C" fn() -> *mut AssetBrowserCreateAssetI>create_instance: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, context: *mut CreationGraphContextT) -> CreationGraphInstanceT>destroy_instance: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>invalidate: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT)>write_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *const CreationGraphBlackboardValueT)>read_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT, value: *mut CreationGraphBlackboardValueT) -> bool>remove_blackboard: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, key_name: StrhashT)>lock_resource_cache: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> *mut CreationGraphNodeCacheT>unlock_resource_cache: Option<unsafe extern "C" fn(cache: *mut CreationGraphNodeCacheT)>add_listener: Option<unsafe extern "C" fn(tt: *mut TheTruthO, asset: TtIdT, object: TtIdT)>tick_queue: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, dt: f32, context: *mut CreationGraphContextT)>has_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT) -> bool>trigger_event: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, event_id: StrhashT, context: *mut CreationGraphContextT)>update_interface: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, interface_id: StrhashT, context: *mut CreationGraphContextT)>lookup_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT) -> CachedNodeResultT>set_cached_node_result: Option<unsafe extern "C" fn(tt: *mut TheTruthO, graph_id: TtIdT, node_id: TtIdT, validity_hash: u64, object: TtIdT)>output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, node_name_hash: StrhashT, context: *mut CreationGraphContextT, output_node_type: *mut *const CreationGraphOutputNodeTypeT) -> CreationGraphOutputT>all_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT) -> CreationGraphAllOutputsT>refresh_outputs: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT)>named_output: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, type_: StrhashT, name: StrhashT) -> CreationGraphNamedOutputT>gather_stripped_graph: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, nodes: *mut SetIdT)>get_instances_from_component: Option<unsafe extern "C" fn(tt: *mut TheTruthO, entity_ctx: *mut EntityContextO, entity: EntityT, component_name_hash: StrhashT, ta: *mut TempAllocatorI) -> *mut *mut CreationGraphInstanceT>set_input_value: Option<unsafe extern "C" fn(instance: *mut CreationGraphInstanceT, context: *mut CreationGraphContextT, name: StrhashT, data: *mut c_void, data_size: u32)>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.