xyginext  0.2.0
Second generation of xygine game creation framework
Public Attributes | List of all members
xy::Callback Struct Referencefinal

Allows attaching a callback function to an entity. More...

#include <Callback.hpp>

Public Attributes

bool active = false
 disabling callbacks when not in use can avoid unnecessary cache misses looking up callback functions
 
CallbackFunction function
 
std::any userData
 Optionally store any data required by the function here (or use a functor)
 

Detailed Description

Allows attaching a callback function to an entity.

See also
CallbackSystem