Skip to content

Commit

Permalink
feat: TESConditionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Oct 19, 2024
1 parent 503330d commit 6a77502
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CommonLibF4/include/RE/Bethesda/TESCondition.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,18 @@ namespace RE

[[nodiscard]] bool IsTrue(TESObjectREFR* a_actionRef, TESObjectREFR* a_targetRef)
{
using func_t = decltype(&TESConditionItem::IsTrue);
using func_t = bool(*)(TESConditionItem*, TESObjectREFR*, TESObjectREFR*);
static REL::Relocation<func_t> func{ REL::ID(2212008) };
return func(this, a_actionRef, a_targetRef);
}

[[nodiscard]] bool IsTrue(ConditionCheckParams& a_params)
{
using func_t = bool(*)(TESConditionItem*, ConditionCheckParams&);
static REL::Relocation<func_t> func{ REL::ID(2212009) };
return func(this, a_params);
}

// members
TESConditionItem* next; // 00
CONDITION_ITEM_DATA data; // 08
Expand Down

0 comments on commit 6a77502

Please sign in to comment.