-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
139 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTArray.h" | ||
#include "RE/B/BSLock.h" | ||
|
||
namespace RE | ||
{ | ||
struct Modifiers | ||
{ | ||
public: | ||
// members | ||
float modifiers[3]; // 0 | ||
}; | ||
static_assert(sizeof(Modifiers) == 0xC); | ||
|
||
class ActorValueStorage | ||
{ | ||
public: | ||
// members | ||
BSTArray<void*> baseValues; // 00 - BSTTuple<std::uint32_t, float> | ||
BSTArray<void*> modifiers; // 10 - BSTTuple<std::uint32_t, Modifiers> | ||
BSReadWriteLock avLock; // 20 | ||
}; | ||
static_assert(sizeof(ActorValueStorage) == 0x28); | ||
} |
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,29 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BSTArray.h" | ||
#include "RE/B/BSTEvent.h" | ||
|
||
namespace RE | ||
{ | ||
class BGSInventoryItem; | ||
|
||
namespace BGSInventoryListEvent | ||
{ | ||
struct Event; | ||
} | ||
|
||
class BGSInventoryList : | ||
public BSTEventSource<BGSInventoryListEvent::Event> // 00 | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(BGSInventoryList); | ||
|
||
~BGSInventoryList() override; // 00 | ||
|
||
// members | ||
BSTArray<BGSInventoryItem> data; // 28 | ||
std::uint32_t ownerHandle; // 38 | ||
float cachedWeight; // 3C | ||
}; | ||
static_assert(sizeof(BGSInventoryList) == 0x40); | ||
} |
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,11 @@ | ||
#include "RE/A/Actor.h" | ||
|
||
namespace RE | ||
{ | ||
bool Actor::IsHostileToActor(Actor* a_actor) | ||
{ | ||
using func_t = decltype(&Actor::IsHostileToActor); | ||
REL::Relocation<func_t> func{ REL::ID(150777) }; | ||
return func(this, a_actor); | ||
} | ||
} |
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,15 @@ | ||
#include "RE/P/PlayerCharacter.h" | ||
|
||
namespace RE | ||
{ | ||
PlayerCharacter* PlayerCharacter::GetSingleton() | ||
{ | ||
static REL::Relocation<PlayerCharacter**> singleton{ REL::ID(865059) }; | ||
return *singleton; | ||
} | ||
|
||
bool PlayerCharacter::IsInChargen() | ||
{ | ||
return *(stl::adjust_pointer<bool>(this, 0xF24)); | ||
} | ||
} |