forked from Ryan-rsm-McKenzie/CommonLibF4
-
Notifications
You must be signed in to change notification settings - Fork 16
feat: Misc RE and corrections. (#62) #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
FalloutCascadia
wants to merge
2
commits into
libxse:main
Choose a base branch
from
FalloutCascadia:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| #pragma once | ||
|
|
||
| #include "RE/B/BSSpinLock.h" | ||
| #include "RE/B/BSTArray.h" | ||
| #include "RE/N/NiPoint2.h" | ||
| #include "RE/N/NiPoint3.h" | ||
|
|
||
| namespace RE | ||
| { | ||
| class BGSTerrainNode; | ||
| class NiCamera; | ||
| class TESWorldSpace; | ||
|
|
||
| class BGSTerrainManager | ||
| { | ||
| public: | ||
| class CullState | ||
| { | ||
| public: | ||
| bool cullRoot; // 00 | ||
| bool cullLand; // 01 | ||
| bool cullTrees; // 02 | ||
| bool cullObjects; // 03 | ||
| bool cullInstanced; // 04 | ||
| }; | ||
|
|
||
| class QuickCullDAta | ||
| { | ||
| public: | ||
| NiPoint2 frustNearLeft; // 000 | ||
| NiPoint2 frustFarLeft; // 008 | ||
| NiPoint2 frustNearRight; // 010 | ||
| NiPoint2 frustFarRight; // 018 | ||
| }; | ||
|
|
||
| void RecomputeQuickCullData(const NiCamera* a_camera) | ||
| { | ||
| using func_t = decltype(&BGSTerrainManager::RecomputeQuickCullData); | ||
| static REL::Relocation<func_t> func{ ID::BGSTerrainManager::RecomputeQuickCullData }; | ||
| return func(this, a_camera); | ||
| } | ||
|
|
||
| // members | ||
| bool mapMode; // 000 | ||
| TESWorldSpace* world; // 008 | ||
| BGSTerrainNode* rootNode; // 010 | ||
| std::int16_t minCellX; // 018 | ||
| std::int16_t minCellY; // 01A | ||
| std::uint32_t maxLevel; // 01C | ||
| std::uint32_t minLevel; // 020 | ||
| std::uint32_t rootLevel; // 024 | ||
| std::uint32_t segmentedBlockLevel; // 028 | ||
| std::uint32_t treeLevel; // 02C | ||
| CullState savedCullState; // 030 | ||
| CullState activeCullState; // 035 | ||
| bool cullActive; // 03A | ||
| bool needsImmediateUpdate; // 03B | ||
| bool initialUpdateDone; // 03C | ||
| bool hasLOD; // 03D | ||
| QuickCullDAta cullData; // 040 | ||
| bool staticDataLoaded; // 060 | ||
| BSTArray<BGSTerrainNode*> updateUpdates; // 068 | ||
| std::uint32_t nextUpdateNode; // 080 | ||
| BSTArray<BGSTerrainNode*> immediateUpdates; // 088 | ||
| BSSpinLock immediateUpdateLock; // 0A0 | ||
| bool lockedLOD; // 0A8 | ||
| std::uint32_t lockedTerrainLOD; // 0AC | ||
| std::uint32_t lockedObjectLOD; // 0B0 | ||
| std::uint32_t totalChildNodes; // 0B4 | ||
| std::uint8_t* childNodeBufferStart; // 0B8 | ||
| std::uint8_t* childNodeBufferCurr; // 0C0 | ||
| std::uint8_t* childNodeBufferEnd; // 0C8 | ||
| std::uint32_t nodeCount; // 0D0 | ||
| std::uint32_t loadedRectUpdateDelay; // 0D4 | ||
| NiPoint3 interiorAdjustedOffset; // 0D8 | ||
| BSTArray<BGSTerrainNode*> fadeNodeA; // 0E8 | ||
| }; | ||
| static_assert(sizeof(BGSTerrainManager) == 0x100); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| #pragma once | ||
|
|
||
| #include "RE/B/BSExtraData.h" | ||
|
|
||
| namespace RE | ||
| { | ||
| class TESRegion; | ||
|
|
||
| class __declspec(novtable) ExtraCellSkyRegion : | ||
| public BSExtraData // 00 | ||
| { | ||
| static constexpr auto RTTI{ RTTI::ExtraCellSkyRegion }; | ||
| static constexpr auto VTABLE{ VTABLE::ExtraCellSkyRegion }; | ||
| static constexpr auto TYPE{ EXTRA_DATA_TYPE::kSkyRegion }; | ||
|
|
||
| // members | ||
| TESRegion* skyRegion; // 18 | ||
| }; | ||
| static_assert(sizeof(ExtraCellSkyRegion) == 0x20); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #pragma once | ||
|
|
||
| #include "RE/B/BSExtraData.h" | ||
| #include "RE/B/BSTArray.h" | ||
|
|
||
| namespace RE | ||
| { | ||
| class BGSKeyword; | ||
| class TESObjectREFR; | ||
|
|
||
| class __declspec(novtable) ExtraLinkedRef : | ||
| public BSExtraData // 00 | ||
| { | ||
| public: | ||
| static constexpr auto RTTI{ RTTI::ExtraLinkedRef }; | ||
| static constexpr auto VTABLE{ VTABLE::ExtraLinkedRef }; | ||
| static constexpr auto TYPE{ EXTRA_DATA_TYPE::kLinkedRef }; | ||
|
|
||
| class LinkedRef | ||
| { | ||
| public: | ||
| BGSKeyword* keyword; // 00 | ||
| TESObjectREFR* REFR; // 08 | ||
| }; | ||
|
|
||
| // members | ||
| BSTSmallArray<LinkedRef, 1> linkedRefs; // 018 | ||
| bool transientRefs; // 038 | ||
| }; | ||
| static_assert(sizeof(ExtraLinkedRef) == 0x40); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| #pragma once | ||
|
|
||
| #include "RE/B/BSExtraData.h" | ||
| #include "RE/B/BSPointerHandle.h" | ||
| #include "RE/B/BSTArray.h" | ||
|
|
||
| namespace RE | ||
| { | ||
| class BGSKeyword; | ||
| class TESObjectREFR; | ||
|
|
||
| class __declspec(novtable) ExtraLinkedRefChildren : | ||
| public BSExtraData // 00 | ||
| { | ||
| public: | ||
| static constexpr auto RTTI{ RTTI::ExtraLinkedRefChildren }; | ||
| static constexpr auto VTABLE{ VTABLE::ExtraLinkedRefChildren }; | ||
| static constexpr auto TYPE{ EXTRA_DATA_TYPE::kLinkedRefChildren }; | ||
|
|
||
| class LinkedRefChild | ||
| { | ||
| public: | ||
| BGSKeyword* keyword; // 00 | ||
| ObjectRefHandle REFR; // 08 | ||
| }; | ||
|
|
||
| // members | ||
| BSTSmallArray<LinkedRefChild, 1> linkedChildren; // 018 | ||
| }; | ||
| static_assert(sizeof(ExtraLinkedRefChildren) == 0x38); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #pragma once | ||
|
|
||
| #include "RE/P/PipboyCommand.h" | ||
|
|
||
| namespace RE | ||
| { | ||
| class __declspec(novtable) FastTravelCommand : | ||
| public PipboyCommand // 000 | ||
| { | ||
| public: | ||
| static constexpr auto RTTI{ RTTI::FastTravelCommand }; | ||
| static constexpr auto VTABLE{ VTABLE::FastTravelCommand }; | ||
|
|
||
| // members | ||
| uint32_t markerId; // 028 | ||
| }; | ||
| static_assert(sizeof(FastTravelCommand) == 0x30); | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #pragma once | ||
|
|
||
| namespace RE | ||
| { | ||
| namespace MapMarker | ||
| { | ||
| enum class MARKER_SCOPE | ||
| { | ||
| kWorld = 0x0, | ||
| kLocal = 0x1 | ||
| }; | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.