events.cpp
Event definition
- Template Parameters
-
Args aguments types to send when the event is triggered
#include <iostream>
#include <turbo/Engine.hpp>
int main() {
std::cout << "i: " << i << ", j: " << j << std::endl;
});
turbo::Event<unsigned int, float> testEvent;
testEvent += event_handler;
testEvent(4, -4.84);
testEvent(8, 17.5);
testEvent(19, 0.1);
return 0;
}
Definition: EventHandler.hpp:13
Definition: Event.hpp:16