Batch #15141 by ragnarok-clanker: no function's compiled code changes; checked with 537 compiled unit(s), including every includer of Source/Client/Input/LanguageTC.h, Source/Client/Mode/CGameMode.h, Source/Client/Mode/CLoginMode.h, Source/Client/Replay.h, Source/Client/Session.h, Source/Contents/AchievementMgr.h, Source/Contents/Actors/CharacterRender.h, Source/Contents/Actors/EffectActors.h, Source/Contents/Actors/GameActor.h, Source/Contents/Actors/Pc.h, Source/Contents/EnchantMgr.h, Source/Contents/GuildInfo.h, Source/Contents/Messenger/MessengerWindows.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/Sound/SoundMgr.h, Source/Contents/SpriteLayerDrawing.h, Source/Contents/TableMng.h, Source/Contents/World/SkyBox.h, Source/UI/Chat/UINewChatWnd.h, Source/UI/Text/CreateLineInfo.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/Window/UINewSelectCharWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIPetInfoWnd.h, Source/UI/Window/UIReplayRECControlWnd.h, Source/UI/Window/UIWindowMgr.h, Source/UI/Window/UIWindowMgr.inl.
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_SCHEDULE_TIMESCHEDULER_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_SCHEDULE_TIMESCHEDULER_H
|
|
|
|
#include "Contents/Schedule/Schedule.h"
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <list>
|
|
|
|
// VTABLE: vt_01790
|
|
class CTimeScheduler {
|
|
public:
|
|
/* 0004 */ std::list<CSchedule*> m_schedules;
|
|
/* 000C */ bool m_initialized;
|
|
/* 000D */ bool m_processingStopped;
|
|
|
|
CTimeScheduler();
|
|
virtual ~CTimeScheduler();
|
|
|
|
static bool Create();
|
|
static void Destroy();
|
|
|
|
bool Init();
|
|
CSchedule* FindSchedule(int serial);
|
|
CSchedule* FindScheduleByKey(int key);
|
|
void RemoveAllSchedules();
|
|
CSchedule* CreateSchedule(const std::int64_t& interval, int scheduleType);
|
|
CSchedule* AddSchedule(CSchedule* schedule);
|
|
void Process();
|
|
void RemoveSchedulesByKey(int value);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CTimeScheduler) == 0x10);
|
|
static_assert(offsetof(CTimeScheduler, m_schedules) == 0x04);
|
|
static_assert(offsetof(CTimeScheduler, m_initialized) == 0x0C);
|
|
static_assert(offsetof(CTimeScheduler, m_processingStopped) == 0x0D);
|
|
#endif
|
|
|
|
extern CTimeScheduler* g_timeScheduler;
|
|
|
|
#endif
|