Batch #7266 by aDw: 0 byte-identical, 1 confirmed by peer review. - fn_03403 CWhirlwindEffect::Init: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi, gordaoprogramas Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
30 lines
814 B
C++
30 lines
814 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTS_WHIRLWINDEFFECT_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_EFFECTS_WHIRLWINDEFFECT_H
|
|
|
|
#include "Contents/Effects/RagEffect.h"
|
|
|
|
#include <chrono>
|
|
#include <cstddef>
|
|
|
|
struct CWhirlwindEffect : CRagEffect {
|
|
CWhirlwindEffect() : duration(250) {
|
|
}
|
|
|
|
/* 11CA8 */ int duration;
|
|
/* 11CAC */ int unknown_11CAC;
|
|
/* 11CB0 */ std::chrono::steady_clock::time_point endTime;
|
|
|
|
bool OnProcess() override;
|
|
void Init(EffectActor* parent, int id, vector3d deltaPos) override;
|
|
|
|
void SetLifetime(int milliseconds);
|
|
void SetDuration(int duration);
|
|
};
|
|
|
|
#if defined(_WIN32) && !defined(_WIN64)
|
|
static_assert(sizeof(CWhirlwindEffect) == 0x11CB8);
|
|
static_assert(offsetof(CWhirlwindEffect, duration) == 0x11CA8);
|
|
static_assert(offsetof(CWhirlwindEffect, endTime) == 0x11CB0);
|
|
#endif
|
|
|
|
#endif
|