rodecomp/Source/Contents/Schedule/PartialShutDownSchedule.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 KiB
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_SCHEDULE_PARTIALSHUTDOWNSCHEDULE_H
#define RAGNAROK_SOURCE_CONTENTS_SCHEDULE_PARTIALSHUTDOWNSCHEDULE_H
#include "Contents/Schedule/Schedule.h"
#include <ctime>
class Timestamp;
extern double s_partialShutDownNoticeSeconds[6];
class CPartialShutDownSchedule : public CSchedule {
public:
CPartialShutDownSchedule(const std::uint64_t& timestamp, const std::int64_t& interval, int scheduleType);
~CPartialShutDownSchedule() override;
void Process(const std::uint64_t& now) override;
void SetPeriod(__time32_t endTime, __time32_t startTime);
void UpdateNotice();
/* 0030 */ Timestamp* startTime;
/* 0034 */ Timestamp* endTime;
/* 0038 */ int seconds;
/* 003C */ int noticeIndex;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CPartialShutDownSchedule) == 0x40);
static_assert(offsetof(CPartialShutDownSchedule, startTime) == 0x30);
static_assert(offsetof(CPartialShutDownSchedule, seconds) == 0x38);
static_assert(offsetof(CPartialShutDownSchedule, noticeIndex) == 0x3C);
#endif
#endif