rodecomp/Source/Contents/Effects/EffectActor.cpp
ragnarok-clanker 780c281aa2 Maintenance: Name window messaging constants: literal window ids (LookupWindow/EnsureWindow/CloseWindow/... -> WindowId), UIWindowMgr
Batch #14937 by ragnarok-clanker: no function's compiled code changes; checked with 251 compiled unit(s), including every includer of Source/Client/Mode/ModeMessage.h, Source/Contents/Actors/ActorEnums.h, Source/Network/Packets/PartyJoinPacket.h, Source/UI/Window/UIEnums.h, Source/UI/Window/WindowId.h.
2026-11-08 13:56:42 +00:00

44 lines
1.2 KiB
C++

#include "Contents/Actors/ActorEnums.h"
#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;
}
// OFFSET: 0x00CA8C40
// FUNCTION: fn_20993
EffectActor::~EffectActor() {
if (!this->state.effects.empty()) {
for (std::list<CRagEffect*>::iterator it = this->state.effects.begin(); it != this->state.effects.end(); ++it) {
if (*it) {
CRagEffect* effect = *it;
effect->SendMsg(this, AM_MASTER_DEAD, 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;
}