MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ add_callback()

void MayaFlux::Nodes::Generator::Logic::add_callback ( const TypedHook< LogicContext > &  callback,
LogicEventType  type,
const std::optional< NodeCondition > &  condition = std::nullopt 
)
inlineprivate

Adds a callback to the list of all callbacks.

Parameters
callbackThe callback function to add
typeThe type of event to trigger the callback
conditionOptional condition for conditional callbacks

Definition at line 624 of file Logic.hpp.

625 {
626 m_all_callbacks.emplace_back(callback, type, condition);
627 }
vk::PhysicalDeviceType type
Definition VKDevice.cpp:146
std::vector< LogicCallback > m_all_callbacks
Collection of all callback functions.
Definition Logic.hpp:643

References type.

Referenced by on_change(), on_change_to(), on_tick(), on_tick_if(), while_false(), and while_true().

+ Here is the caller graph for this function: