Decompile fn_24284 (CGroundScope::Update)

Batch #1905 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_24284 CGroundScope::Update: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Contents/Actors/GroundScope.cpp
This commit is contained in:
ragnarok-clanker 2026-10-28 23:26:33 +00:00
commit ac2249cef5
3 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,14 @@
#include "Contents/Actors/GroundScope.h"
#include <windows.h>
#include <mmsystem.h>
// OFFSET: 0x00E4C2F0
// FUNCTION: fn_24284
bool CGroundScope::Update() {
if (this->m_lastingTime < timeGetTime()) {
return false;
}
return true;
}

View file

@ -0,0 +1,20 @@
#ifndef RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H
#define RAGNAROK_SOURCE_CONTENTS_ACTORS_GROUNDSCOPE_H
#include "Contents/Effects/EffectActor.h"
#include <cstddef>
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

View file

@ -275,6 +275,7 @@
"Source/Contents/ActorNameRequests.cpp": 4, "Source/Contents/ActorNameRequests.cpp": 4,
"Source/Contents/Actors/AttackMotion.cpp": 4, "Source/Contents/Actors/AttackMotion.cpp": 4,
"Source/Contents/Actors/GameObject.cpp": 4, "Source/Contents/Actors/GameObject.cpp": 4,
"Source/Contents/Actors/GroundScope.cpp": 4,
"Source/Contents/Actors/MercenaryAI.cpp": 4, "Source/Contents/Actors/MercenaryAI.cpp": 4,
"Source/Contents/Actors/Player.cpp": 4, "Source/Contents/Actors/Player.cpp": 4,
"Source/Contents/Actors/RenderObject.cpp": 4, "Source/Contents/Actors/RenderObject.cpp": 4,