diff --git a/Source/Contents/EffectActor.h b/Source/Contents/EffectActor.h index 4a57c12..42999b3 100644 --- a/Source/Contents/EffectActor.h +++ b/Source/Contents/EffectActor.h @@ -20,6 +20,7 @@ struct EffectActorState { // Recovered CAbleToMakeEffect lifecycle, not the larger CGameActor dispatcher. struct EffectActor : CRenderObject { EffectActor(ResourceMgr& resources, JobNames& names); + bool EffectVisible() const; EffectActorState state; }; diff --git a/Source/Contents/EffectAttachments.cpp b/Source/Contents/EffectAttachments.cpp index 0d8fc39..c442d9f 100644 --- a/Source/Contents/EffectAttachments.cpp +++ b/Source/Contents/EffectAttachments.cpp @@ -1,4 +1,5 @@ #include "Contents/EffectAttachments.h" +#include "Contents/EffectActor.h" #include "Contents/RagEffectState.h" // OFFSET: 0x00CADBE0 @@ -59,3 +60,8 @@ void EffectAttachments::DetachAll() { this->first = nullptr; this->second = nullptr; } + +// FUNCTION: fn_21063 +bool EffectActor::EffectVisible() const { + return this->render.visible != 0 && this->render.enabled != 0; +}