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:
parent
c14ddddccf
commit
ac2249cef5
3 changed files with 35 additions and 0 deletions
14
Source/Contents/Actors/GroundScope.cpp
Normal file
14
Source/Contents/Actors/GroundScope.cpp
Normal 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;
|
||||
}
|
||||
20
Source/Contents/Actors/GroundScope.h
Normal file
20
Source/Contents/Actors/GroundScope.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue