Skip to content

Commit 8c8d6cc

Browse files
committed
feat: add Actor::HasObjects
1 parent ea41ba6 commit 8c8d6cc

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
@@ -27,6 +27,7 @@ namespace RE
2727
enum class ACTOR_LIFE_STATE;
2828
enum class ACTOR_LOS_LOCATION;
2929
enum class GUN_STATE;
30+
enum class PACKAGE_OBJECT_TYPE;
3031
enum class POWER_ATTACK_TYPE;
3132

3233
template <class>
@@ -382,6 +383,13 @@ namespace RE
382383
return func(this, bCullBone);
383384
}
384385

386+
bool HasObjects(TESBoundObject* a_obj, PACKAGE_OBJECT_TYPE a_formID, std::int32_t a_number, std::uint32_t a_id, PACKAGE_OBJECT_TYPE& a_matchID)
387+
{
388+
using func_t = decltype(&Actor::HasObjects);
389+
static REL::Relocation<func_t> func{ ID::Actor::HasObjects };
390+
return func(this, a_obj, a_formID, a_number, a_id, a_matchID);
391+
}
392+
385393
void InitiateDoNothingPackage()
386394
{
387395
using func_t = decltype(&Actor::InitiateDoNothingPackage);

include/RE/IDs.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ namespace RE::ID
3030
inline constexpr REL::ID GetSex{ 2229674 };
3131
inline constexpr REL::ID HandleDefaultAnimationSwitch{ 2229780 };
3232
inline constexpr REL::ID HandleItemEquip{ 2229781 };
33+
inline constexpr REL::ID HasObjects{ 2229961 };
3334
inline constexpr REL::ID InitiateDoNothingPackage{ 2229807 };
3435
inline constexpr REL::ID IsCrippled{ 2230998 };
3536
inline constexpr REL::ID IsFollowing{ 2230013 };

0 commit comments

Comments
 (0)