forked from Ryan-rsm-McKenzie/CommonLibF4
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix(BSExtraData.h) - constructor for ExtraHealth was incorrect. * feat(PipboyDataGroup & PipboyValue) * fix(PipboyDataGroup) - use REX::W32 instead of WinAPI. * feat: Few more functions and whatnot.
- Loading branch information
1 parent
25dac70
commit 7556f74
Showing
7 changed files
with
116 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,27 @@ | ||
#pragma once | ||
|
||
#include "RE/Bethesda/BSTEvent.h" | ||
#include "RE/Bethesda/IMenu.h" | ||
#include "RE/Bethesda/PipboyValue.h" | ||
|
||
namespace RE | ||
{ | ||
class PipboyDataGroup | ||
: BSTEventSource<PipboyValueChangedEvent> | ||
{ | ||
public: | ||
static constexpr auto RTTI{ RTTI::PipboyDataGroup }; | ||
static constexpr auto VTABLE{ VTABLE::PipboyDataGroup }; | ||
|
||
virtual ~PipboyDataGroup(); | ||
|
||
virtual void Populate(bool); | ||
virtual void DoClearData(); | ||
virtual void DoClearSink(); | ||
|
||
REX::W32::CRITICAL_SECTION PipboyDataMutex; | ||
void* rThrottleManager; // PipboyThrottleManager | ||
PipboyValue* rootValue; | ||
}; | ||
static_assert(sizeof(PipboyDataGroup) == 0x98); | ||
} |
This file contains 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,61 @@ | ||
#pragma once | ||
|
||
#include "RE/Bethesda/BSFixedString.h" | ||
#include "RE/Bethesda/BSTArray.h" | ||
#include "RE/Bethesda/BSTHashMap.h" | ||
|
||
namespace RE | ||
{ | ||
class PipboyObject; | ||
|
||
class __declspec(novtable) PipboyValue | ||
{ | ||
public: | ||
static constexpr auto RTTI{ RTTI::PipboyValue }; | ||
static constexpr auto VTABLE{ VTABLE::PipboyValue }; | ||
|
||
enum SERIALIZATION_DATA_TYPE : std::uint8_t | ||
{ | ||
SDT_BOOL = 0x0, | ||
SDT_INT_8 = 0x1, | ||
SDT_UINT_8 = 0x2, | ||
SDT_INT_32 = 0x3, | ||
SDT_UINT_32 = 0x4, | ||
SDT_FLOAT = 0x5, | ||
SDT_STRING = 0x6, | ||
SDT_ARRAY = 0x7, | ||
SDT_OBJECT = 0x8, | ||
}; | ||
|
||
virtual ~PipboyValue(); | ||
|
||
virtual void CleanDirtyToGame(); | ||
virtual void Serialize(void* a_args1); | ||
virtual void SerializeChanged(void* a_args1); | ||
virtual SERIALIZATION_DATA_TYPE GetType(); | ||
|
||
// members | ||
std::uint32_t id; // 08 | ||
bool isDirtyGame; // 0C | ||
bool isDirtyToCompanion; // 0D | ||
PipboyValue* parentValue; // 10 | ||
}; | ||
static_assert(sizeof(PipboyValue) == 0x18); | ||
|
||
class __declspec(novtable) PipboyObject : | ||
PipboyValue | ||
{ | ||
public: | ||
static constexpr auto RTTI{ RTTI::PipboyObject }; | ||
static constexpr auto VTABLE{ VTABLE::PipboyObject }; | ||
|
||
virtual ~PipboyObject(); | ||
|
||
//members | ||
BSTHashMap<BSFixedString, PipboyValue*> memberMap; | ||
BSTSet<std::uint32_t> addedMemberIDs; | ||
BSTArray<std::uint32_t> removedMemberIDs; | ||
bool newlyCreated; | ||
}; | ||
static_assert(sizeof(PipboyObject) == 0x98); | ||
} |
This file contains 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 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