diff --git a/Source/Contents/Actors/GroundScope.cpp b/Source/Contents/Actors/GroundScope.cpp new file mode 100644 index 0000000..c284255 --- /dev/null +++ b/Source/Contents/Actors/GroundScope.cpp @@ -0,0 +1,14 @@ +#include "Contents/Actors/GroundScope.h" + +#include +#include + +// OFFSET: 0x00E4C2F0 +// FUNCTION: fn_24284 +bool CGroundScope::Update() { + if (this->m_lastingTime < timeGetTime()) { + return false; + } + + return true; +} diff --git a/Source/Contents/Actors/GroundScope.h b/Source/Contents/Actors/GroundScope.h new file mode 100644 index 0000000..8365eae --- /dev/null +++ b/Source/Contents/Actors/GroundScope.h @@ -0,0 +1,20 @@ +#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H +#define RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H + +#include "Contents/Effects/EffectActor.h" + +#include + +class CGroundScope : public EffectActor { +public: + bool Update() override; + + /* 0158 */ unsigned char unknown_0158[0xC]; + /* 0164 */ unsigned long m_lastingTime; +}; + +#if defined(_WIN32) && !defined(_WIN64) +static_assert(offsetof(CGroundScope, m_lastingTime) == 0x164); +#endif + +#endif diff --git a/data/compile.json b/data/compile.json index 42062f2..76b3fc0 100644 --- a/data/compile.json +++ b/data/compile.json @@ -275,6 +275,7 @@ "Source/Contents/ActorNameRequests.cpp": 4, "Source/Contents/Actors/AttackMotion.cpp": 4, "Source/Contents/Actors/GameObject.cpp": 4, + "Source/Contents/Actors/GroundScope.cpp": 4, "Source/Contents/Actors/MercenaryAI.cpp": 4, "Source/Contents/Actors/Player.cpp": 4, "Source/Contents/Actors/RenderObject.cpp": 4,