mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Just some refactoring
This commit is contained in:
@@ -68,9 +68,9 @@ protected:
|
||||
std::string m_appCompactName;
|
||||
std::string m_appVersion;
|
||||
std::string m_startupOptions;
|
||||
Boolean<false> m_running;
|
||||
Boolean<false> m_stopping;
|
||||
Boolean<false> m_terminated;
|
||||
bool m_running = false;
|
||||
bool m_stopping = false;
|
||||
stdext::boolean<false> m_terminated;
|
||||
};
|
||||
|
||||
#ifdef FW_GRAPHICS
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
private:
|
||||
std::list<EventPtr> m_eventList;
|
||||
int m_pollEventsSize;
|
||||
Boolean<false> m_disabled;
|
||||
bool m_disabled = false;
|
||||
std::priority_queue<ScheduledEventPtr, std::vector<ScheduledEventPtr>, lessScheduledEvent> m_scheduledEventList;
|
||||
};
|
||||
|
||||
|
@@ -60,8 +60,8 @@ protected:
|
||||
void inputEvent(const InputEvent& event);
|
||||
|
||||
private:
|
||||
Boolean<false> m_onInputEvent;
|
||||
Boolean<false> m_mustRepaint;
|
||||
bool m_onInputEvent = false;
|
||||
bool m_mustRepaint = false;
|
||||
AdaptativeFrameCounter m_backgroundFrameCounter;
|
||||
AdaptativeFrameCounter m_foregroundFrameCounter;
|
||||
TexturePtr m_foreground;
|
||||
|
@@ -63,10 +63,10 @@ protected:
|
||||
friend class ModuleManager;
|
||||
|
||||
private:
|
||||
Boolean<false> m_loaded;
|
||||
Boolean<false> m_autoLoad;
|
||||
Boolean<false> m_reloadable;
|
||||
Boolean<false> m_sandboxed;
|
||||
bool m_loaded = false;
|
||||
bool m_autoLoad = false;
|
||||
bool m_reloadable = false;
|
||||
bool m_sandboxed = false;
|
||||
int m_autoLoadPriority;
|
||||
int m_sandboxEnv;
|
||||
std::tuple<std::string, std::string> m_onLoadFunc;
|
||||
|
@@ -72,7 +72,7 @@ public:
|
||||
private:
|
||||
std::string m_workDir;
|
||||
std::string m_writeDir;
|
||||
Boolean<false> m_hasSearchPath;
|
||||
bool m_hasSearchPath = false;
|
||||
std::deque<std::string> m_searchPaths;
|
||||
};
|
||||
|
||||
|
@@ -41,7 +41,7 @@ public:
|
||||
|
||||
private:
|
||||
ticks_t m_startTicks;
|
||||
Boolean<false> m_stopped;
|
||||
bool m_stopped = false;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user