rodecomp/Source/Contents/Effects/EffectAttachments.cpp
ragnarok-clanker 3be8819db2 Maintenance: [forced, user-approved] Family W4: remove invented EffectAttachments (reference bundle over EffectActorState effects/fir
Batch #10257 by ragnarok-clanker: forced by an admin (7 lower score(s), 31 changed function(s)); checked with 95 compiled unit(s), including every includer of Source/Contents/Effects/EffectActor.h, Source/Contents/Effects/EffectAttachments.h.
Deletes: Source/Contents/Effects/EffectAttachments.h
2026-11-03 13:09:24 +00:00

32 lines
724 B
C++

#include "Contents/Effects/EffectActor.h"
#include "Contents/Effects/RagEffectState.h"
// OFFSET: 0x00CADBE0
// FUNCTION: fn_21062
bool EffectActor::HasId(int id) const {
for (const RagEffectState* effect : this->state.effects) {
if (effect && effect->type == id) {
return true;
}
}
return false;
}
// OFFSET: 0x00CADC40
// FUNCTION: fn_21064
bool EffectActor::Contains(const RagEffectState* effect) const {
for (const RagEffectState* current : this->state.effects) {
if (current == effect) {
return true;
}
}
return false;
}
// OFFSET: 0x00CADC20
// FUNCTION: fn_21063
bool EffectActor::EffectVisible() const {
return this->render.visible != 0 && this->render.enabled != 0;
}