rodecomp/Source/Contents/Schedule/TimeScheduler.h
ragnarok-clanker f8d3e8622d Maintenance: Rename placeholder sub_XXXXXX functions to evidence-based names (Lua registration strings, log/error strings, packet ids
Batch #13412 by ragnarok-clanker: no function's compiled code changes; checked with 592 compiled unit(s), including every includer of Source/Client/Mode/CGameMode.h, Source/Client/Session.h, Source/Contents/Actors/GameActor.h, Source/Contents/CashEmotionMgr.h, Source/Contents/ClientItemLists.h, Source/Contents/ClientState.h, Source/Contents/Configuration/GameSettingsMgr.h, Source/Contents/Items/ItemInfo.h, Source/Contents/NavigationManager.h, Source/Contents/RenewQuestMgr.h, Source/Contents/ReputeMgr.h, Source/Contents/Schedule/TimeScheduler.h, Source/Contents/WorldView/WorldViewData.h, Source/UI/Buttons/UIDescriptRace.h, Source/UI/CashEmotion/UICashEmotionListWnd.h, Source/UI/Dialogs/UIPasswordWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Edit/UIItemTagCtrl.h, Source/UI/GameSettings/GameSettingsUI.h, Source/UI/Item/UIItemStoreSubWnd.h, Source/UI/Items/UISwapEquipmentWnd.h, Source/UI/Lists/UIChatHisBox.h, Source/UI/Lists/UITagListBox.h, Source/UI/Quest/UIOngoingQuestInfo.h, Source/UI/Quest/UIRenewQuestUI.h, Source/UI/Rodex/UIRodexComposeWnd.h, Source/UI/Text/UIAchWnd.h, Source/UI/UIGradeEnchantWnd.h, Source/UI/UIIngredientInfoWnd.h, Source/UI/UIMacroUserInfoWnd.h, Source/UI/Window/UINewSkillListWnd.h, Source/UI/Window/UIRegisterMgr.h, Source/UI/Window/UIWindow.h, Source/UI/Window/UIWindowMgr.h, Source/Utility/JsonCppLoader.h.
2026-11-06 16:30:12 +00:00

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_unknown_000D;
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_unknown_000D) == 0x0D);
#endif
extern CTimeScheduler* g_timeScheduler;
#endif