Decompile fn_18985 (CEffect::RetireIfInactive)
Batch #1827 by Yommy: 0 byte-identical, 1 confirmed by peer review. - fn_18985 CEffect::RetireIfInactive: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
e73d83bc01
commit
716701c6ab
2 changed files with 14 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
#include "Contents/Effects/Effect.h"
|
#include "Contents/Effects/Effect.h"
|
||||||
|
|
||||||
|
#include "Contents/Effects/EffectLists.h"
|
||||||
|
|
||||||
// OFFSET: 0x00B4DAE0
|
// OFFSET: 0x00B4DAE0
|
||||||
// FUNCTION: fn_18979
|
// FUNCTION: fn_18979
|
||||||
CEffect::CEffect(int value)
|
CEffect::CEffect(int value)
|
||||||
|
|
@ -24,6 +26,17 @@ void CEffect::AddEvent(int kind, const char* text, int frame, int argument) {
|
||||||
this->events.push_back(event);
|
this->events.push_back(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OFFSET: 0x00B4DF90
|
||||||
|
// FUNCTION: fn_18985
|
||||||
|
bool CEffect::RetireIfInactive() {
|
||||||
|
if (!this->Slot06()) {
|
||||||
|
g_effectMgr->Retire(this, 0);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// OFFSET: 0x00B4E170
|
// OFFSET: 0x00B4E170
|
||||||
// FUNCTION: fn_18988
|
// FUNCTION: fn_18988
|
||||||
void CEffect::SetEventFrame(int kind, int frame) {
|
void CEffect::SetEventFrame(int kind, int frame) {
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,7 @@ public:
|
||||||
virtual bool Slot33() = 0;
|
virtual bool Slot33() = 0;
|
||||||
void AddEvent(int kind, const char* text, int frame, int argument);
|
void AddEvent(int kind, const char* text, int frame, int argument);
|
||||||
void SetEventFrame(int kind, int frame);
|
void SetEventFrame(int kind, int frame);
|
||||||
|
bool RetireIfInactive();
|
||||||
|
|
||||||
/* 0004 */ int id;
|
/* 0004 */ int id;
|
||||||
/* 0008 */ float position[3];
|
/* 0008 */ float position[3];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue