mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
Refactor for documentation
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include <framework/core/clock.h>
|
||||
#include "timer.h"
|
||||
|
||||
EventDispatcher g_eventDispatcher;
|
||||
EventDispatcher g_dispatcher;
|
||||
|
||||
|
||||
void EventDispatcher::flush()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "clock.h"
|
||||
#include "scheduledevent.h"
|
||||
|
||||
// @bindsingleton g_eventDispatcher
|
||||
// @bindsingleton g_dispatcher
|
||||
class EventDispatcher
|
||||
{
|
||||
public:
|
||||
@@ -44,6 +44,6 @@ private:
|
||||
std::priority_queue<ScheduledEventPtr, std::vector<ScheduledEventPtr>, lessScheduledEvent> m_scheduledEventList;
|
||||
};
|
||||
|
||||
extern EventDispatcher g_eventDispatcher;
|
||||
extern EventDispatcher g_dispatcher;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -54,7 +54,7 @@ void Logger::log(Fw::LogLevel level, const std::string& message)
|
||||
|
||||
if(m_onLog) {
|
||||
// schedule log callback, because this callback can run lua code that may affect the current state
|
||||
g_eventDispatcher.addEvent([=] {
|
||||
g_dispatcher.addEvent([=] {
|
||||
if(m_onLog)
|
||||
m_onLog(level, outmsg, now);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user