rodecomp/Source/Contents/Schedule/Schedule.h
ragnarok-clanker 0699f7e7a4 Decompile 3 functions in Source/Contents/Schedule/PartialShutDownSchedule.cpp, Source/Contents/Schedule/PartialShutDownSchedule.h, ...
Batch #4290 by OrangeCat: 0 byte-identical, 3 confirmed by peer review.

- fn_19719 CPartialShutDownSchedule::CPartialShutDownSchedule: logic confirmed by peer review
- fn_19721 CPartialShutDownSchedule::UpdateNotice: logic confirmed by peer review
- fn_19722 CPartialShutDownSchedule::SetPeriod: logic confirmed by peer review

Peer-reviewed-by: youko, tayoba
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
Adds to the build: Source/Contents/Schedule/PartialShutDownSchedule.cpp
2026-10-30 02:01:42 +00:00

34 lines
1,001 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_SCHEDULE_SCHEDULE_H
#define RAGNAROK_SOURCE_CONTENTS_SCHEDULE_SCHEDULE_H
#include <cstddef>
#include <cstdint>
#pragma pack(push, 4)
class CSchedule {
public:
CSchedule(const std::uint64_t& timestamp, const std::int64_t& interval, int scheduleType, int serial, int unknown);
virtual void Process(const std::uint64_t& now);
virtual ~CSchedule();
virtual void Slot02() = 0;
virtual void Slot03();
/* 0004 */ std::uint8_t unknown_0004[0xC];
/* 0010 */ std::uint64_t timestamp;
/* 0018 */ std::int64_t interval;
/* 0020 */ int scheduleType;
/* 0024 */ bool active;
/* 0025 */ std::uint8_t unknown_0025[0xB];
};
#pragma pack(pop)
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CSchedule) == 0x30);
static_assert(offsetof(CSchedule, timestamp) == 0x10);
static_assert(offsetof(CSchedule, interval) == 0x18);
static_assert(offsetof(CSchedule, scheduleType) == 0x20);
static_assert(offsetof(CSchedule, active) == 0x24);
#endif
#endif