Say for instance I wanted to add a callback within a function. In HPL Engine there's quite of them called: AddTimer(const string& asName, float time, const string& asFunction); Usage would be given:
void onEnter() {
AddTimer("Timer1",2.0, "Funct1");
}
void Funct1(string &asFunction) {
//... Do something ..//
}
I don't know why but I got a feeling inside AddTimer C++ function they create a new module and build it upon initialization. The declared function being whatever the third parameter be inside AddTimer. Upon rendering time - they would execute all the modules functions?