mirror of
https://github.com/edubart/otclient.git
synced 2025-12-26 09:47:11 +01:00
add clock, change exceptions, add network exceptions, fix some crashes
This commit is contained in:
@@ -35,19 +35,10 @@ struct ScheduledEvent {
|
||||
class EventDispatcher
|
||||
{
|
||||
public:
|
||||
/// Initialize dispatcher
|
||||
void init();
|
||||
|
||||
/// Cleanup scheduled events
|
||||
void terminate();
|
||||
|
||||
/// Execute scheduled events
|
||||
void flush();
|
||||
void poll();
|
||||
|
||||
/// Add an event
|
||||
void addEvent(const SimpleCallback& callback, bool pushFront = false);
|
||||
|
||||
/// Schedule an event
|
||||
void scheduleEvent(const SimpleCallback& callback, int delay);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user