Toast Engine
Loading...
Searching...
No Matches
toast::TickFunctions Struct Reference

Set of lifecycle function pointers for one Node type. More...

#include <reflect_node.hpp>

Public Types

using Invoker = void (*)(void*)
 void* erases the Node* to avoid a vtable; generated code casts it back before calling

Public Attributes

TickFunctionList list
Invoker load = nullptr
Invoker save = nullptr
Invoker editor_tick = nullptr
Invoker init = nullptr
Invoker destroy = nullptr
Invoker begin = nullptr
Invoker end = nullptr
Invoker on_enable = nullptr
Invoker on_disable = nullptr
Invoker early_tick = nullptr
Invoker tick = nullptr
Invoker physics_tick = nullptr
Invoker post_physics = nullptr
Invoker late_tick = nullptr

Detailed Description

Set of lifecycle function pointers for one Node type.

Generated by the reflection tool; one pointer per lifecycle phase. A null pointer means the type does not implement that phase. The list bitfield mirrors the non-null pointers for O(1) phase-presence checks without dereferencing.

Note
Do not call these directly; go through Node::callTick()

The documentation for this struct was generated from the following file: