rodecomp/Source/Contents/Effects/EffectLists.h
ragnarok-clanker 7a9ea8ab29 Decompile fn_17691 (WorldScene::Clear)
Batch #1549 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_17691 WorldScene::Clear: logic confirmed by peer review

Peer-reviewed-by: eAthena
Reviewed-by: ragnarok-clanker
2026-10-28 18:50:15 +00:00

29 lines
779 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECTLISTS_H
#define RAGNAROK_SOURCE_CONTENTS_EFFECTS_EFFECTLISTS_H
#include "Contents/Effects/Effect.h"
#include <map>
struct EffectLists {
std::map<int, std::list<CEffect*>>& active;
EffectRetirement& retirement;
std::map<int, std::vector<CEffect*>>& indexed;
CEffect* Find(int actor, int id) const;
CEffect* Find(int actor, int instance, int id) const;
CEffect* At(int id, unsigned index) const;
void Add(int actor, CEffect* effect);
void Retire(CEffect* effect, unsigned char removeActive);
void Retire(int actor, int id);
void Retire(int actor, int instance, int id);
void RetireActor(int actor);
void Clear();
private:
void RemoveActive(CEffect* effect);
};
extern EffectLists* g_effectMgr;
#endif