Skip to content

Commit

Permalink
RE MagicItemFindKeywordFunctor
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 committed Oct 18, 2024
1 parent e83cfcb commit 95838b5
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/sourcelist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ set(SOURCES
include/RE/M/MagicFormulas.h
include/RE/M/MagicItem.h
include/RE/M/MagicItemDataCollector.h
include/RE/M/MagicItemFindFunctor.h
include/RE/M/MagicItemFindKeywordFunctor.h
include/RE/M/MagicItemTraversalFunctor.h
include/RE/M/MagicMenu.h
include/RE/M/MagicSystem.h
Expand Down
26 changes: 26 additions & 0 deletions include/RE/M/MagicItemFindFunctor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#pragma once

#include "RE/M/MagicItemTraversalFunctor.h"

namespace RE
{
class MagicItemFindFunctor : public MagicItemTraversalFunctor
{
public:
inline static constexpr auto RTTI = RTTI_MagicItemFindFunctor;
inline static constexpr auto VTABLE = VTABLE_MagicItemFindFunctor;

~MagicItemFindFunctor() override; // 00

// override (MagicItemTraversalFunctor)
BSContainer::ForEachResult operator()(Effect* a_effect) override; // 01

// add
virtual bool MatchCondition(Effect* a_effect) = 0; // 02

// members
std::int32_t indexCount; // 10
std::uint32_t pad14; // 14
};
static_assert(sizeof(MagicItemFindFunctor) == 0x18);
}
24 changes: 24 additions & 0 deletions include/RE/M/MagicItemFindKeywordFunctor.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#pragma once

#include "RE/M/MagicItemFindFunctor.h"

namespace RE
{
class BGSKeyword;

class MagicItemFindKeywordFunctor : public MagicItemFindFunctor
{
public:
inline static constexpr auto RTTI = RTTI_MagicItemFindKeywordFunctor;
inline static constexpr auto VTABLE = VTABLE_MagicItemFindKeywordFunctor;

~MagicItemFindKeywordFunctor() override; // 00

// override (MagicItemFindFunctor)
bool MatchCondition(Effect* a_effect) override; // 02

// members
BGSKeyword* keyword; // 18
};
static_assert(sizeof(MagicItemFindKeywordFunctor) == 0x20);
}

0 comments on commit 95838b5

Please sign in to comment.