Skip to content

Commit 7851b6b

Browse files
committed
Merge branch 'main-refactor' into shared-impl
2 parents 1a48369 + b7f4925 commit 7851b6b

1,426 files changed

Lines changed: 18440 additions & 14979 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,6 @@ install(
145145
"include/RE"
146146
"include/REL"
147147
"include/REX"
148+
"include/Scaleform"
148149
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
149150
)

include/F4SE/Impl/PCH.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ namespace RE
1414
namespace stl = XSE::stl;
1515
}
1616

17+
namespace Scaleform
18+
{
19+
using namespace std::literals;
20+
namespace stl = XSE::stl;
21+
}
22+
1723
#include "RE/IDs.h"
1824
#include "RE/NiRTTI_IDs.h"
1925
#include "RE/RTTI_IDs.h"
2026
#include "RE/VTABLE_IDs.h"
2127

22-
#include "RE/Bethesda/BSCoreTypes.h"
28+
#include "RE/B/BSCoreTypes.h"

include/F4SE/Interfaces.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ namespace RE
1010
{
1111
class IVirtualMachine;
1212
}
13+
}
1314

14-
namespace Scaleform::GFx
15+
namespace Scaleform
16+
{
17+
namespace GFx
1518
{
1619
class Movie;
1720
class Value;
@@ -249,7 +252,7 @@ namespace F4SE
249252
kVersion = 1
250253
};
251254

252-
using RegisterCallback = bool F4SEAPI(RE::Scaleform::GFx::Movie* a_view, RE::Scaleform::GFx::Value* a_value);
255+
using RegisterCallback = bool F4SEAPI(Scaleform::GFx::Movie* a_view, Scaleform::GFx::Value* a_value);
253256

254257
[[nodiscard]] std::uint32_t Version() const noexcept { return GetProxy().interfaceVersion; }
255258

include/RE/A/ACTION_OBJECT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace RE
44
{
5-
struct ACTION_OBJECT
5+
class ACTION_OBJECT
66
{
77
public:
88
// members

include/RE/A/ACTOR_BASE_DATA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace RE
44
{
5-
struct ACTOR_BASE_DATA
5+
class ACTOR_BASE_DATA
66
{
77
public:
88
enum class Flag

include/RE/A/ACTOR_CRITICAL_STAGE.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ namespace RE
1111
kDisintegrateEnd = 0x4,
1212
kFreezeStart = 0x5,
1313
kFreezeEnd = 0x6,
14-
kCount = 0x7
1514
};
1615
}

include/RE/A/ACTOR_VALUE_MODIFIER.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace RE
44
{
5-
enum class ACTOR_VALUE_MODIFIER
5+
enum class ACTOR_VALUE_MODIFIER : std::int32_t
66
{
77
kPermanent = 0,
88
kTemporary = 1,

include/RE/A/ADDON_DATA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace RE
44
{
5-
struct ADDON_DATA
5+
class ADDON_DATA
66
{
77
public:
88
// members

include/RE/A/AIDATA_GAME.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace RE
44
{
5-
struct AIDATA_GAME
5+
class AIDATA_GAME
66
{
77
public:
88
// members

include/RE/A/AIProcess.h

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,62 @@
11
#pragma once
22

3+
#include "RE/A/AITimer.h"
4+
#include "RE/A/ActorPackage.h"
5+
#include "RE/B/BGSEquipIndex.h"
6+
#include "RE/B/BGSObjectInstance.h"
7+
#include "RE/B/BSPointerHandle.h"
8+
#include "RE/B/BSSimpleList.h"
9+
#include "RE/D/DEFAULT_OBJECT.h"
10+
#include "RE/N/NiPoint.h"
11+
312
namespace RE
413
{
14+
enum class COMMAND_TYPE;
15+
enum class DIALOGUE_SUBTYPE;
16+
enum class DIALOGUE_TYPE;
17+
enum class WEAPON_CULL_TYPE;
18+
19+
class CachedValues;
20+
class HighProcessData;
21+
class MiddleHighProcessData;
22+
class MiddleLowProcessData;
23+
class ObjectstoAcquire;
24+
525
class AIProcess
626
{
727
public:
828
[[nodiscard]] TESAmmo* GetCurrentAmmo(BGSEquipIndex a_equipIndex) const
929
{
1030
using func_t = decltype(&AIProcess::GetCurrentAmmo);
11-
static REL::Relocation<func_t> func{ REL::ID(2232300) };
31+
static REL::Relocation<func_t> func{ ID::AIProcess::GetCurrentAmmo };
1232
return func(this, a_equipIndex);
1333
}
1434

1535
COMMAND_TYPE GetCommandType()
1636
{
1737
using func_t = decltype(&AIProcess::GetCommandType);
18-
static REL::Relocation<func_t> func{ REL::ID(2231825) };
38+
static REL::Relocation<func_t> func{ ID::AIProcess::GetCommandType };
1939
return func(this);
2040
}
2141

2242
[[nodiscard]] ObjectRefHandle GetOccupiedFurniture()
2343
{
2444
using func_t = decltype(&AIProcess::GetOccupiedFurniture);
25-
static REL::Relocation<func_t> func{ REL::ID(2232401) };
45+
static REL::Relocation<func_t> func{ ID::AIProcess::GetOccupiedFurniture };
2646
return func(this);
2747
}
2848

2949
bool IsWeaponSubgraphFinishedLoading(const Actor& a_actor)
3050
{
3151
using func_t = decltype(&AIProcess::IsWeaponSubgraphFinishedLoading);
32-
static REL::Relocation<func_t> func{ REL::ID(2231757) };
52+
static REL::Relocation<func_t> func{ ID::AIProcess::IsWeaponSubgraphFinishedLoading };
3353
return func(this, a_actor);
3454
}
3555

3656
void KnockExplosion(Actor* a_actor, const NiPoint3& a_location, float a_magnitude)
3757
{
3858
using func_t = decltype(&AIProcess::KnockExplosion);
39-
static REL::Relocation<func_t> func{ REL::ID(2232384) };
59+
static REL::Relocation<func_t> func{ ID::AIProcess::KnockExplosion };
4060
return func(this, a_actor, a_location, a_magnitude);
4161
}
4262

@@ -48,63 +68,63 @@ namespace RE
4868
bool ProcessGreet(Actor* a_actor, DIALOGUE_TYPE a_type, DIALOGUE_SUBTYPE a_subType, TESObjectREFR* a_target, BGSDialogueBranch* a_branch, bool a_forceSub, bool a_stop, bool a_que, bool a_sayCallback)
4969
{
5070
using func_t = decltype(&AIProcess::ProcessGreet);
51-
static REL::Relocation<func_t> func{ REL::ID(2231808) };
71+
static REL::Relocation<func_t> func{ ID::AIProcess::ProcessGreet };
5272
return func(this, a_actor, a_type, a_subType, a_target, a_branch, a_forceSub, a_stop, a_que, a_sayCallback);
5373
}
5474

5575
bool RequestLoadAnimationsForWeaponChange(Actor& a_actor)
5676
{
5777
using func_t = decltype(&AIProcess::RequestLoadAnimationsForWeaponChange);
58-
static REL::Relocation<func_t> func{ REL::ID(2231758) };
78+
static REL::Relocation<func_t> func{ ID::AIProcess::RequestLoadAnimationsForWeaponChange };
5979
return func(this, a_actor);
6080
}
6181

6282
void SetActorsDetectionEvent(Actor* a_actor, const NiPoint3& a_location, std::int32_t a_soundLevel, TESObjectREFR* a_refr)
6383
{
6484
using func_t = decltype(&AIProcess::SetActorsDetectionEvent);
65-
static REL::Relocation<func_t> func{ REL::ID(2231738) };
85+
static REL::Relocation<func_t> func{ ID::AIProcess::SetActorsDetectionEvent };
6686
return func(this, a_actor, a_location, a_soundLevel, a_refr);
6787
}
6888

6989
void SetCurrentAmmo(BGSEquipIndex a_equipIndex, TESAmmo* a_ammo)
7090
{
7191
using func_t = decltype(&AIProcess::SetCurrentAmmo);
72-
static REL::Relocation<func_t> func{ REL::ID(2232302) };
92+
static REL::Relocation<func_t> func{ ID::AIProcess::SetCurrentAmmo };
7393
return func(this, a_equipIndex, a_ammo);
7494
}
7595

7696
void SetCommandType(COMMAND_TYPE a_type)
7797
{
7898
using func_t = decltype(&AIProcess::SetCommandType);
79-
static REL::Relocation<func_t> func{ REL::ID(2231826) };
99+
static REL::Relocation<func_t> func{ ID::AIProcess::SetCommandType };
80100
return func(this, a_type);
81101
}
82102

83103
void SetEquippedItem(Actor* a_actor, const BGSObjectInstance& a_instance, const BGSEquipSlot* a_slot)
84104
{
85105
using func_t = decltype(&AIProcess::SetEquippedItem);
86-
static REL::Relocation<func_t> func{ REL::ID(1200276) };
106+
static REL::Relocation<func_t> func{ ID::AIProcess::SetEquippedItem };
87107
return func(this, a_actor, a_instance, a_slot);
88108
}
89109

90-
bool SetupSpecialIdle(Actor& a_actor, RE::DEFAULT_OBJECT a_defaultObject, TESIdleForm* a_idle, bool a_testConditions, TESObjectREFR* a_targetOverride)
110+
bool SetupSpecialIdle(Actor& a_actor, DEFAULT_OBJECT a_defaultObject, TESIdleForm* a_idle, bool a_testConditions, TESObjectREFR* a_targetOverride)
91111
{
92112
using func_t = decltype(&AIProcess::SetupSpecialIdle);
93-
static REL::Relocation<func_t> func{ REL::ID(2231704) };
113+
static REL::Relocation<func_t> func{ ID::AIProcess::SetupSpecialIdle };
94114
return func(this, a_actor, a_defaultObject, a_idle, a_testConditions, a_targetOverride);
95115
}
96116

97117
bool SetWeaponBonesCulled(const Actor& a_actor, bool a_stateToSet, WEAPON_CULL_TYPE a_weaponCullType)
98118
{
99119
using func_t = decltype(&AIProcess::SetWeaponBonesCulled);
100-
static REL::Relocation<func_t> func{ REL::ID(2232535) };
120+
static REL::Relocation<func_t> func{ ID::AIProcess::SetWeaponBonesCulled };
101121
return func(this, a_actor, a_stateToSet, a_weaponCullType);
102122
}
103123

104124
void StopCurrentIdle(Actor* a_actor, bool a_instant, bool a_killFlavor)
105125
{
106126
using func_t = decltype(&AIProcess::StopCurrentIdle);
107-
static REL::Relocation<func_t> func{ REL::ID(2231705) };
127+
static REL::Relocation<func_t> func{ ID::AIProcess::StopCurrentIdle };
108128
return func(this, a_actor, a_instant, a_killFlavor);
109129
}
110130

0 commit comments

Comments
 (0)