rodecomp/Source/Contents/ShowRankingScheduler.h
ragnarok-clanker 3b11197763 Decompile 2 functions in Source/Contents/ShowRankingScheduler.cpp, Source/Contents/ShowRankingScheduler.h
Batch #12738 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_04735 CShowRankingScheduler::CShowRankingScheduler: byte-identical
- fn_24235 CSession::SetShowRankingSchedule: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-06 00:21:17 +00:00

40 lines
1.2 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_SHOWRANKINGSCHEDULER_H
#define RAGNAROK_SOURCE_CONTENTS_SHOWRANKINGSCHEDULER_H
#include "Contents/Schedule/Schedule.h"
#include <cstddef>
#include <cstdint>
#include <map>
#include <vector>
struct RankingBoardStyle {
/* 0000 */ const char* title;
/* 0004 */ std::uint32_t color;
/* 0008 */ std::uint32_t background;
};
extern int g_schedulerSerial;
std::map<int, RankingBoardStyle> RankingBoardStyles();
class CShowRankingScheduler : public CSchedule {
public:
__declspec(noinline) CShowRankingScheduler(const std::uint64_t& timestamp, const std::int64_t& interval, int scheduleType);
~CShowRankingScheduler() override = default;
void Process(const std::uint64_t& now) override;
__declspec(noinline) void SetData(const void* data);
void Show();
/* 0030 */ std::uint8_t rankingData[88];
/* 0088 */ std::int64_t delay = 0;
/* 0090 */ std::vector<std::uint32_t> rankingList;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(RankingBoardStyle) == 12);
static_assert(offsetof(CShowRankingScheduler, rankingData) == 0x30);
static_assert(offsetof(CShowRankingScheduler, rankingList) == 0x90);
#endif
#endif