Skip to content

Commit 6a77502

Browse files
committed
feat: TESConditionItem
1 parent 503330d commit 6a77502

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

CommonLibF4/include/RE/Bethesda/TESCondition.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,18 @@ namespace RE
8080

8181
[[nodiscard]] bool IsTrue(TESObjectREFR* a_actionRef, TESObjectREFR* a_targetRef)
8282
{
83-
using func_t = decltype(&TESConditionItem::IsTrue);
83+
using func_t = bool(*)(TESConditionItem*, TESObjectREFR*, TESObjectREFR*);
8484
static REL::Relocation<func_t> func{ REL::ID(2212008) };
8585
return func(this, a_actionRef, a_targetRef);
8686
}
8787

88+
[[nodiscard]] bool IsTrue(ConditionCheckParams& a_params)
89+
{
90+
using func_t = bool(*)(TESConditionItem*, ConditionCheckParams&);
91+
static REL::Relocation<func_t> func{ REL::ID(2212009) };
92+
return func(this, a_params);
93+
}
94+
8895
// members
8996
TESConditionItem* next; // 00
9097
CONDITION_ITEM_DATA data; // 08

0 commit comments

Comments
 (0)