rodecomp/Source/Contents/Effects/EffectActor.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

47 lines
1.3 KiB
C++

#include "Contents/Effects/EffectActor.h"
#include "Contents/Effects/RagEffect.h"
// INLINED
EffectActorState::EffectActorState() : unknown_0138(-1), unknown_013C(0), unknown_0140(0), first(nullptr), second(nullptr) {
}
// INLINED
EffectActorState::~EffectActorState() {
}
// OFFSET: 0x00CA82E0
// FUNCTION: fn_20987
EffectActor::EffectActor() {
this->render.unknown_0130[0] = 0;
}
struct CAbleToMakeEffect : EffectActor {
~CAbleToMakeEffect() override;
};
// OFFSET: 0x00CA8C40
// FUNCTION: fn_20993
CAbleToMakeEffect::~CAbleToMakeEffect() {
if (!this->state.effects.empty()) {
for (std::list<RagEffectState*>::iterator it = this->state.effects.begin(); it != this->state.effects.end(); ++it) {
if (*it) {
CRagEffect* effect = reinterpret_cast<CRagEffect*>(*it);
effect->SendMsg(this, 0x18, 0, 0, 0, 0, 0, 0);
}
}
this->state.effects.erase(this->state.effects.begin(), this->state.effects.end());
}
this->state.first = nullptr;
this->state.second = nullptr;
}
// OFFSET: 0x00CAF4B0
// FUNCTION: fn_21083
void EffectActor::ResetEffectState() {
this->state.unknown_0138 = -1;
this->state.unknown_013C = 0;
this->state.unknown_0140 = 0;
this->state.first = nullptr;
this->state.second = nullptr;
this->render.unknown_0130[0] = 0;
}