diff --git a/Source/Contents/EffectResourceSwitcher.cpp b/Source/Contents/EffectResourceSwitcher.cpp index 178db951..6b8b67a2 100644 --- a/Source/Contents/EffectResourceSwitcher.cpp +++ b/Source/Contents/EffectResourceSwitcher.cpp @@ -544,3 +544,13 @@ int CEZ2STREffectMgr::EffectId(const std::string& name) { return -1; } + +// OFFSET: 0x00700BA0 +// FUNCTION: fn_06990 +std::vector CEZ2STREffectMgr::EffectIds() { + std::vector ids; + for (auto it = this->effects.begin(); it != this->effects.end(); ++it) { + ids.push_back(it->second.id + 10000); + } + return ids; +} diff --git a/Source/Contents/EffectResourceSwitcher.h b/Source/Contents/EffectResourceSwitcher.h index 87e20a56..7d7ebe51 100644 --- a/Source/Contents/EffectResourceSwitcher.h +++ b/Source/Contents/EffectResourceSwitcher.h @@ -10,6 +10,7 @@ #include #include #include +#include struct EZ2STREffectInfo { /* 0000 */ int id = 0; @@ -46,6 +47,7 @@ public: EZ2STREffectInfo* FindById(int id); int EffectId(const std::string& name); + std::vector EffectIds(); }; class CEZ2STREffect : public CEffect {