Skip to content

Commit 9b2d13f

Browse files
authored
Merge pull request #41 from FalloutCascadia/main
Misc. additions.
2 parents cf7a8ad + 25ae7b2 commit 9b2d13f

43 files changed

Lines changed: 579 additions & 71 deletions

Some content is hidden

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

include/RE/B/BGSArtObject.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ namespace RE
1616
static constexpr auto VTABLE{ VTABLE::BGSArtObject };
1717
static constexpr auto FORM_ID{ ENUM_FORM_ID::kARTO };
1818

19-
enum class ArtType;
19+
enum class ArtType
20+
{
21+
kMagicCastingArt = 0x0,
22+
kMagicHitEffect = 0x1,
23+
kMagicEnchantEffect = 0x2,
24+
25+
kTotal = 0x3
26+
};
2027

2128
class Data
2229
{

include/RE/B/BGSCameraShot.h

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,25 @@ namespace RE
1717
static constexpr auto VTABLE{ VTABLE::BGSCameraShot };
1818
static constexpr auto FORM_ID{ ENUM_FORM_ID::kCAMS };
1919

20-
enum class CAM_ACTION;
21-
enum class CAM_OBJECT;
20+
enum class CAM_ACTION
21+
{
22+
kShoot = 0x0,
23+
kFly = 0x1,
24+
kHit = 0x2,
25+
kZoom = 0x3,
26+
27+
kTotal = 0x4
28+
};
29+
30+
enum class CAM_OBJECT
31+
{
32+
kAttacker = 0x0,
33+
kProjectile = 0x1,
34+
kTarget = 0x2,
35+
kLeadActor = 0x3,
36+
37+
kTotal = 0x4
38+
};
2239

2340
class CAMERA_SHOT_DATA
2441
{

include/RE/B/BSScript_Internal_LinkerProcessor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace RE
3838
ErrorLogger* errorLogger; // 10
3939
ILoader* loader; // 18
4040
std::uint64_t unk20; // 20
41-
char* unk28; // 28
41+
bool forceReload; // 28
4242
BSScrapArray<BSFixedString> loadedParents; // 30
4343
BSScrapArray<BSFixedString> objectsToTypecheck; // 50
4444
BSScrapArray<BSFixedString> processQueue; // 70

include/RE/B/BSTArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ namespace RE
190190
const auto mem = _allocator->Allocate(a_bytes, alignof(void*));
191191
if (!mem) {
192192
REX::FAIL("failed to handle allocation request");
193-
} else {
194-
return mem;
195193
}
194+
195+
return mem;
196196
}
197197

198198
void deallocate(void* a_ptr)

include/RE/D/DialogueMenuUtils.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
namespace DialogueMenuUtils
6+
{
7+
inline void OpenMenu()
8+
{
9+
using func_t = decltype(&DialogueMenuUtils::OpenMenu);
10+
static REL::Relocation<func_t> func{ ID::DialogueMenuUtils::OpenMenu };
11+
return func();
12+
}
13+
14+
inline void CloseMenu()
15+
{
16+
using func_t = decltype(&DialogueMenuUtils::CloseMenu);
17+
static REL::Relocation<func_t> func{ ID::DialogueMenuUtils::CloseMenu };
18+
return func();
19+
}
20+
21+
inline void ShowSpeechChallengeAnim()
22+
{
23+
using func_t = decltype(&DialogueMenuUtils::ShowSpeechChallengeAnim);
24+
static REL::Relocation<func_t> func{ ID::DialogueMenuUtils::ShowSpeechChallengeAnim };
25+
return func();
26+
}
27+
}
28+
}

include/RE/D/_D3DBLEND.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class _D3DBLEND
6+
{
7+
kZero = 0x1,
8+
kOne = 0x2,
9+
kSrcColor = 0x3,
10+
kInvSrcColor = 0x4,
11+
kSrcAlpha = 0x5,
12+
kInvSrcAlpha = 0x6,
13+
kDestAlpha = 0x7,
14+
kInvDestAlpha = 0x8,
15+
kDestColor = 0x9,
16+
kInvDestColor = 0xA,
17+
kSrcAlphaSat = 0xB,
18+
kBothSrcAlpha = 0xC,
19+
kBothInvSrcAlpha = 0xD,
20+
kBlendFactor = 0xE,
21+
kInvBlendFactor = 0xF,
22+
kSrcColor2 = 0x10,
23+
kInvSrcColor2 = 0x11,
24+
kForce_DWORD = 0x7FFFFFFF
25+
};
26+
}

include/RE/D/_D3DBLENDOP.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class _D3DBLENDOP
6+
{
7+
kAdd = 0x1,
8+
kSubtract = 0x2,
9+
kRevSubtract = 0x3,
10+
kMin = 0x4,
11+
kMax = 0x5,
12+
kForce_DWORD = 0x7FFFFFFF
13+
};
14+
}

include/RE/D/_D3DCMPFUNC.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#pragma once
2+
3+
namespace RE
4+
{
5+
enum class _D3DCMPFUNC
6+
{
7+
kNever = 0x1,
8+
kLess = 0x2,
9+
kEqual = 0x3,
10+
kLessEqual = 0x4,
11+
kGreater = 0x5,
12+
kNotEqual = 0x6,
13+
kGreaterEqual = 0x7,
14+
kAlways = 0x8,
15+
kForce_DWORD = 0x7FFFFFFF
16+
};
17+
}

include/RE/E/EffectShaderData.h

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

3+
#include "RE/D/_D3DBLEND.h"
4+
#include "RE/D/_D3DBLENDOP.h"
5+
#include "RE/D/_D3DCMPFUNC.h"
6+
37
namespace RE
48
{
5-
enum class _D3DBLEND;
6-
enum class _D3DBLENDOP;
7-
enum class _D3DCMPFUNC;
8-
99
class EffectShaderData
1010
{
1111
public:

include/RE/E/ExamineMenu.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@ namespace RE
1919
static constexpr auto VTABLE{ VTABLE::ExamineMenu };
2020
static constexpr auto MENU_NAME{ "ExamineMenu"sv };
2121

22-
enum class INSPECT_MODE_STATE;
22+
enum class INSPECT_MODE_STATE
23+
{
24+
kModSlotSelect = 0,
25+
kSelectNewMod = 1,
26+
kInvComponentSelect = 2,
27+
kItemSelect = 3,
28+
kConfirm = 4
29+
};
2330

2431
class ComponentBuilderFunctor
2532
{

0 commit comments

Comments
 (0)