Skip to content

Commit 105e1f6

Browse files
committed
refactor: split Fallout.cpp
1 parent 1a41865 commit 105e1f6

31 files changed

Lines changed: 400 additions & 293 deletions

include/RE/A/AimModel.h

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

33
#include "RE/B/BGSAimModel.h"
44
#include "RE/N/NiPoint.h"
5-
#include "RE/S/SpringState.h"
5+
#include "RE/B/BSSpring_SpringState.h"
66

77
namespace RE
88
{

include/RE/Fallout.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@
383383
#include "RE/B/BSSimpleList.h"
384384
#include "RE/B/BSSoundHandle.h"
385385
#include "RE/B/BSSpinLock.h"
386+
#include "RE/B/BSSpring_SpringState.h"
386387
#include "RE/B/BSSteamAwardsSystemUtility.h"
387388
#include "RE/B/BSStorage.h"
388389
#include "RE/B/BSStorageDefs.h"
@@ -577,7 +578,6 @@
577578
#include "RE/F/FlameProjectile.h"
578579
#include "RE/F/FlatScreenModel.h"
579580
#include "RE/F/FleePackage.h"
580-
#include "RE/F/FormUtil.h"
581581
#include "RE/F/FreeCameraState.h"
582582
#include "RE/F/FriendshipFactionsStruct.h"
583583
#include "RE/G/GROUP_REACTION.h"
@@ -909,7 +909,6 @@
909909
#include "RE/S/SpectatorThreatInfo.h"
910910
#include "RE/S/SpellItem.h"
911911
#include "RE/S/SplineUtils.h"
912-
#include "RE/S/SpringState.h"
913912
#include "RE/S/StartMenuBase.h"
914913
#include "RE/S/StolenItemValueStruct.h"
915914
#include "RE/S/SubGraphIdleRootData.h"
@@ -955,6 +954,7 @@
955954
#include "RE/T/TESFlora.h"
956955
#include "RE/T/TESForm.h"
957956
#include "RE/T/TESFormDeleteEvent.h"
957+
#include "RE/T/TESFormUtil.h"
958958
#include "RE/T/TESFullName.h"
959959
#include "RE/T/TESFurniture.h"
960960
#include "RE/T/TESFurnitureEvent.h"

include/RE/P/PlayerControlsData.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include "RE/N/NiPoint.h"
4-
#include "RE/S/SpringState.h"
4+
#include "RE/B/BSSpring_SpringState.h"
55

66
namespace RE
77
{

res/cmake/sourcelist.cmake

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ set(SOURCES
388388
include/RE/B/BSSimpleList.h
389389
include/RE/B/BSSoundHandle.h
390390
include/RE/B/BSSpinLock.h
391+
include/RE/B/BSSpring_SpringState.h
391392
include/RE/B/BSSteamAwardsSystemUtility.h
392393
include/RE/B/BSStorage.h
393394
include/RE/B/BSStorageDefs.h
@@ -582,7 +583,6 @@ set(SOURCES
582583
include/RE/F/FlameProjectile.h
583584
include/RE/F/FlatScreenModel.h
584585
include/RE/F/FleePackage.h
585-
include/RE/F/FormUtil.h
586586
include/RE/F/FreeCameraState.h
587587
include/RE/F/FriendshipFactionsStruct.h
588588
include/RE/Fallout.h
@@ -918,7 +918,6 @@ set(SOURCES
918918
include/RE/S/SpectatorThreatInfo.h
919919
include/RE/S/SpellItem.h
920920
include/RE/S/SplineUtils.h
921-
include/RE/S/SpringState.h
922921
include/RE/S/StartMenuBase.h
923922
include/RE/S/StolenItemValueStruct.h
924923
include/RE/S/SubGraphIdleRootData.h
@@ -964,6 +963,7 @@ set(SOURCES
964963
include/RE/T/TESFlora.h
965964
include/RE/T/TESForm.h
966965
include/RE/T/TESFormDeleteEvent.h
966+
include/RE/T/TESFormUtil.h
967967
include/RE/T/TESFullName.h
968968
include/RE/T/TESFurniture.h
969969
include/RE/T/TESFurnitureEvent.h
@@ -1282,11 +1282,15 @@ set(SOURCES
12821282
src/F4SE/Interfaces.cpp
12831283
src/F4SE/Logger.cpp
12841284
src/RE/A/Actor.cpp
1285+
src/RE/B/BGSCreatedObjectManager.cpp
12851286
src/RE/B/BGSInventoryItem.cpp
12861287
src/RE/B/BGSKeyword.cpp
12871288
src/RE/B/BGSKeywordForm.cpp
12881289
src/RE/B/BGSLocation.cpp
12891290
src/RE/B/BGSObjectInstanceExtra.cpp
1291+
src/RE/B/BSCRC32.cpp
1292+
src/RE/B/BSFixedString.cpp
1293+
src/RE/B/BSPointerHandle.cpp
12901294
src/RE/B/BSResource.cpp
12911295
src/RE/B/BSResourceNiBinaryStream.cpp
12921296
src/RE/B/BSResource_Stream.cpp
@@ -1302,14 +1306,27 @@ set(SOURCES
13021306
src/RE/B/BSScript_StructTypeInfo.cpp
13031307
src/RE/B/BSScript_TypeInfo.cpp
13041308
src/RE/B/BSScript_Variable.cpp
1305-
src/RE/B/BSTempEffectUtil.cpp
1309+
src/RE/B/BSSpinLock.cpp
1310+
src/RE/B/BSSpring_SpringState.cpp
1311+
src/RE/B/BSTArray.cpp
1312+
src/RE/B/BSTAtomicValue.cpp
1313+
src/RE/B/BSTDataBuffer.cpp
1314+
src/RE/B/BSTInterpolator.cpp
1315+
src/RE/B/BSTPoint.cpp
13061316
src/RE/B/BSVisit.cpp
1317+
src/RE/B/ButtonEvent.cpp
13071318
src/RE/C/Calendar.cpp
1319+
src/RE/C/CharacterEvent.cpp
1320+
src/RE/C/CursorMoveEvent.cpp
1321+
src/RE/D/DeviceConnectEvent.cpp
13081322
src/RE/E/ExtraInstanceData.cpp
1309-
src/RE/F/FormUtil.cpp
13101323
src/RE/Fallout.cpp
1324+
src/RE/G/GetCurrentPositionFunctor.cpp
1325+
src/RE/I/IDEvent.cpp
13111326
src/RE/I/InventoryInterface.cpp
1327+
src/RE/K/KinectEvent.cpp
13121328
src/RE/M/MenuCursor.cpp
1329+
src/RE/M/MouseMoveEvent.cpp
13131330
src/RE/N/NiAVObject.cpp
13141331
src/RE/N/NiBinaryStream.cpp
13151332
src/RE/N/NiMatrix3.cpp
@@ -1318,10 +1335,12 @@ set(SOURCES
13181335
src/RE/N/NiRect.cpp
13191336
src/RE/N/NiTransform.cpp
13201337
src/RE/P/PlayerCharacter.cpp
1338+
src/RE/S/Setting.cpp
13211339
src/RE/T/TESFullName.cpp
13221340
src/RE/T/TESNPC.cpp
13231341
src/RE/T/TESObjectCELL.cpp
13241342
src/RE/T/TESValueForm.cpp
1343+
src/RE/T/ThumbstickEvent.cpp
13251344
src/RE/W/WorkbenchMenuBase.cpp
13261345
src/REL/HookObject.cpp
13271346
src/REL/HookStore.cpp
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "RE/B/BGSCreatedObjectManager.h"
2+
3+
#include "RE/A/AlchemyItem.h"
4+
#include "RE/T/TESForm.h"
5+
6+
namespace RE
7+
{
8+
template class BGSCreatedObjectManager::BSTCreatedObjectSmartPointerPolicy<AlchemyItem>;
9+
static_assert(std::is_empty_v<BGSCreatedObjectManager::BSTCreatedObjectSmartPointerPolicy<AlchemyItem>>);
10+
11+
template class BGSCreatedObjectManager::BSTCreatedObjectSmartPointerPolicy<TESForm>;
12+
static_assert(std::is_empty_v<BGSCreatedObjectManager::BSTCreatedObjectSmartPointerPolicy<TESForm>>);
13+
}

src/RE/B/BSCRC32.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#include "RE/B/BSCRC32.h"
2+
3+
namespace RE
4+
{
5+
template struct BSCRC32<std::int8_t>;
6+
template struct BSCRC32<std::uint8_t>;
7+
template struct BSCRC32<std::int16_t>;
8+
template struct BSCRC32<std::uint16_t>;
9+
template struct BSCRC32<std::int32_t>;
10+
template struct BSCRC32<std::uint32_t>;
11+
template struct BSCRC32<std::int64_t>;
12+
template struct BSCRC32<std::uint64_t>;
13+
}

src/RE/B/BSFixedString.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#include "RE/B/BSFixedString.h"
2+
3+
namespace RE
4+
{
5+
namespace detail
6+
{
7+
template class BSFixedString<char, false>;
8+
static_assert(sizeof(BSFixedString<char, false>) == 0x8);
9+
10+
template class BSFixedString<char, true>;
11+
static_assert(sizeof(BSFixedString<char, true>) == 0x8);
12+
13+
template class BSFixedString<wchar_t, false>;
14+
static_assert(sizeof(BSFixedString<wchar_t, false>) == 0x8);
15+
16+
template class BSFixedString<wchar_t, true>;
17+
static_assert(sizeof(BSFixedString<wchar_t, true>) == 0x8);
18+
}
19+
20+
template struct BSCRC32<BSFixedString>;
21+
template struct BSCRC32<BSFixedStringCS>;
22+
template struct BSCRC32<BSFixedStringW>;
23+
template struct BSCRC32<BSFixedStringWCS>;
24+
}

src/RE/B/BSPointerHandle.cpp

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#include "RE/B/BSPointerHandle.h"
2+
3+
#include "RE/A/Actor.h"
4+
#include "RE/P/Projectile.h"
5+
#include "RE/T/TESObjectREFR.h"
6+
7+
namespace RE
8+
{
9+
template class BSPointerHandle<Actor>;
10+
static_assert(sizeof(BSPointerHandle<Actor>) == 0x4);
11+
12+
template class BSPointerHandle<Projectile>;
13+
static_assert(sizeof(BSPointerHandle<Projectile>) == 0x4);
14+
15+
template class BSPointerHandle<TESObjectREFR>;
16+
static_assert(sizeof(BSPointerHandle<TESObjectREFR>) == 0x4);
17+
18+
template class BSUntypedPointerHandle<>;
19+
static_assert(sizeof(BSUntypedPointerHandle<>) == 0x4);
20+
21+
template class BSPointerHandleManagerInterface<Actor>;
22+
static_assert(std::is_empty_v<BSPointerHandleManagerInterface<Actor>>);
23+
24+
template class BSPointerHandleManagerInterface<Projectile>;
25+
static_assert(std::is_empty_v<BSPointerHandleManagerInterface<Projectile>>);
26+
27+
template class BSPointerHandleManagerInterface<TESObjectREFR>;
28+
static_assert(std::is_empty_v<BSPointerHandleManagerInterface<TESObjectREFR>>);
29+
}

0 commit comments

Comments
 (0)