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
pub unsafe fn create_instance(
&self,
tt: *mut TheTruthO,
asset: TtIdT,
context: *mut CreationGraphContextT
) -> CreationGraphInstanceT
pub unsafe fn destroy_instance(
&self,
instance: *mut CreationGraphInstanceT,
context: *mut CreationGraphContextT
)
pub unsafe fn write_blackboard(
&self,
tt: *mut TheTruthO,
asset: TtIdT,
key_name: StrhashT,
value: *const CreationGraphBlackboardValueT
)
pub unsafe fn read_blackboard(
&self,
tt: *mut TheTruthO,
asset: TtIdT,
key_name: StrhashT,
value: *mut CreationGraphBlackboardValueT
) -> bool
pub unsafe fn lock_resource_cache(
&self,
tt: *mut TheTruthO,
graph_id: TtIdT,
node_id: TtIdT
) -> *mut CreationGraphNodeCacheT
pub unsafe fn tick_queue(
&self,
instance: *mut CreationGraphInstanceT,
dt: f32,
context: *mut CreationGraphContextT
)
pub unsafe fn has_event(
&self,
instance: *mut CreationGraphInstanceT,
event_id: StrhashT
) -> bool
pub unsafe fn trigger_event(
&self,
instance: *mut CreationGraphInstanceT,
event_id: StrhashT,
context: *mut CreationGraphContextT
)
pub unsafe fn update_interface(
&self,
instance: *mut CreationGraphInstanceT,
interface_id: StrhashT,
context: *mut CreationGraphContextT
)
pub unsafe fn lookup_cached_node_result(
&self,
tt: *mut TheTruthO,
graph_id: TtIdT,
node_id: TtIdT
) -> CachedNodeResultT
pub unsafe fn set_cached_node_result(
&self,
tt: *mut TheTruthO,
graph_id: TtIdT,
node_id: TtIdT,
validity_hash: u64,
object: TtIdT
)
pub unsafe fn output(
&self,
instance: *mut CreationGraphInstanceT,
node_name_hash: StrhashT,
context: *mut CreationGraphContextT,
output_node_type: *mut *const CreationGraphOutputNodeTypeT
) -> CreationGraphOutputT
pub unsafe fn all_outputs(
&self,
instance: *mut CreationGraphInstanceT,
context: *mut CreationGraphContextT
) -> CreationGraphAllOutputsT
pub unsafe fn refresh_outputs(
&self,
instance: *mut CreationGraphInstanceT,
context: *mut CreationGraphContextT
)
pub unsafe fn named_output(
&self,
instance: *mut CreationGraphInstanceT,
type_: StrhashT,
name: StrhashT
) -> CreationGraphNamedOutputT
pub unsafe fn gather_stripped_graph(
&self,
instance: *mut CreationGraphInstanceT,
context: *mut CreationGraphContextT,
nodes: *mut SetIdT
)
pub unsafe fn get_instances_from_component(
&self,
tt: *mut TheTruthO,
entity_ctx: *mut EntityContextO,
entity: EntityT,
component_name_hash: StrhashT,
ta: *mut TempAllocatorI
) -> *mut *mut CreationGraphInstanceT
pub unsafe fn set_input_value(
&self,
instance: *mut CreationGraphInstanceT,
context: *mut CreationGraphContextT,
name: StrhashT,
data: *mut c_void,
data_size: u32
)
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreationGraphApi
impl Send for CreationGraphApi
impl Sync for CreationGraphApi
impl Unpin for CreationGraphApi
impl UnwindSafe for CreationGraphApi
Blanket Implementations
Mutably borrows from an owned value. Read more