C/C++ SDK / C ABI · Module entry / KroysPluginCallbacks
KroysPluginCallbacks
Filled by the plugin in Start. All optional.
Kindstruct
Headerkroys/kroys_plugin.h
Members6
Functions3
DECLARATION
Declaration
Declared in kroys/kroys_plugin.h.
kroys_plugin.h
typedef struct KroysPluginCallbacks { ... } KroysPluginCallbacks;
REFERENCE
Members
Fields
#uint32_t structSize;Size of this struct as the writer compiled it (sizeof); the reader uses it to detect members appended by later minor versions.
#uint32_t reserved;Padding reserved for later use; leave it 0.
#void* userData;Plugin-owned pointer passed back unchanged to every callback of this table; the host never dereferences it.
Functions
#void (KROYS_CALL* OnUnload)(void* userData);Last call. The host already removed every registration of this instance.
#void (KROYS_CALL* OnWorldStarted)(void* userData, KroysWorld world);Runtime target: a game world starts (before its first frame) or stops.
#void (KROYS_CALL* OnWorldStopping)(void* userData, KroysWorld world);Runtime target: a game world is about to stop (after its last frame).
Members
uint32_t structSize; uint32_t reserved; void* userData; void (KROYS_CALL* OnUnload)(void* userData); void (KROYS_CALL* OnWorldStarted)(void* userData, KroysWorld world); void (KROYS_CALL* OnWorldStopping)(void* userData, KroysWorld world);
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.