Skip to content

Commit 1265381

Browse files
committed
feat: Actor::GetSex
1 parent d9835d7 commit 1265381

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

include/RE/A/Actor.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "RE/M/Modifiers.h"
1818
#include "RE/N/NiPoint.h"
1919
#include "RE/N/NiTFlags.h"
20+
#include "RE/S/SEX.h"
2021
#include "RE/T/TESObjectREFR.h"
2122

2223
namespace RE
@@ -369,6 +370,13 @@ namespace RE
369370
return func(this, a_perk);
370371
}
371372

373+
SEX GetSex()
374+
{
375+
using func_t = decltype(&Actor::GetSex);
376+
static REL::Relocation<func_t> func{ ID::Actor::GetSex };
377+
return func(this);
378+
}
379+
372380
void HandleDefaultAnimationSwitch()
373381
{
374382
using func_t = decltype(&Actor::HandleDefaultAnimationSwitch);

include/RE/IDs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ namespace RE::ID
2626
inline constexpr REL::ID GetMountHandle{ 2231230 };
2727
inline constexpr REL::ID GetLevel{ 2229734 };
2828
inline constexpr REL::ID GetPerkRank{ 2230125 };
29+
inline constexpr REL::ID GetSex{ 2229674 };
2930
inline constexpr REL::ID HandleDefaultAnimationSwitch{ 2229780 };
3031
inline constexpr REL::ID HandleItemEquip{ 2229781 };
3132
inline constexpr REL::ID InitiateDoNothingPackage{ 2229807 };

0 commit comments

Comments
 (0)