Skip to content

Commit

Permalink
feat: ActorUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Oct 4, 2024
1 parent b608f5a commit 6c24925
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/RE/A/ActorUtils.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#pragma once

namespace RE
{
class Actor;
class BGSKeyword;
}

namespace RE::ActorUtils
{
inline bool ChangeAnimArchetype(Actor* a_actor, BGSKeyword* a_keyword)
{
using func_t = decltype(&ActorUtils::ChangeAnimArchetype);
static REL::Relocation<func_t> func{ ID::ActorUtils::ChangeAnimArchetype };
return func(a_actor, a_keyword);
}
}
5 changes: 5 additions & 0 deletions include/RE/IDs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ namespace RE::ID
inline constexpr REL::ID WornHasKeyword{ 106992 };
}

namespace ActorUtils
{
inline constexpr REL::ID ChangeAnimArchetype{ 150497 };
}

namespace ActorValue
{
inline constexpr REL::ID GetSingleton{ 36266 };
Expand Down
1 change: 1 addition & 0 deletions include/RE/Starfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "RE/A/AIProcess.h"
#include "RE/A/AVMData.h"
#include "RE/A/Actor.h"
#include "RE/A/ActorUtils.h"
#include "RE/A/ActorEquipManager.h"
#include "RE/A/ActorPackage.h"
#include "RE/A/ActorState.h"
Expand Down

0 comments on commit 6c24925

Please sign in to comment.