-
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.
feat: complete 'TESObjectREFR` inheritance and related classes (#36)
- Switched to using `BSTEvent` class definitions from CommonLib, this gets rid of the unreferenced parameter error - Added some getters and couple of functions - `IsInSpaceship` was incorrectly defined, it is now `GetAttachedSpaceship` (note the return parameter should be a `NiSmartPointer` which isn't included as of yet)
- Loading branch information
Showing
13 changed files
with
227 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
class IAnimationGraphManagerHolder | ||
{ | ||
public: | ||
virtual ~IAnimationGraphManagerHolder(); // 00 | ||
|
||
// add | ||
virtual void Unk_01(); // 01 | ||
virtual void Unk_02(); // 02 | ||
virtual void Unk_03(); // 03 | ||
virtual void Unk_04(); // 04 | ||
virtual void Unk_05(); // 05 | ||
virtual void Unk_06(); // 06 | ||
virtual void Unk_07(); // 07 | ||
virtual void Unk_08(); // 08 | ||
virtual void Unk_09(); // 09 | ||
virtual void Unk_0A(); // 0A | ||
virtual void Unk_0B(); // 0B | ||
virtual void Unk_0C(); // 0C | ||
virtual void Unk_0D(); // 0D | ||
virtual void Unk_0E(); // 0E | ||
virtual void Unk_0F(); // 0F | ||
virtual void Unk_10(); // 10 | ||
virtual void Unk_11(); // 11 | ||
virtual void Unk_12(); // 12 | ||
virtual void Unk_13(); // 13 | ||
virtual void Unk_14(); // 14 | ||
virtual void Unk_15(); // 15 | ||
virtual void Unk_16(); // 16 | ||
virtual void Unk_17(); // 17 | ||
virtual void Unk_18(); // 18 | ||
}; | ||
} |
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 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
struct IMovementInterface | ||
{ | ||
public: | ||
virtual ~IMovementInterface(); // 00 | ||
}; | ||
static_assert(sizeof(IMovementInterface) == 0x8); | ||
} |
16 changes: 16 additions & 0 deletions
16
CommonLibSF/include/RE/I/IPostAnimationChannelUpdateFunctor.h
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,16 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
class IPostAnimationChannelUpdateFunctor | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(IPostAnimationChannelUpdateFunctor); | ||
|
||
virtual ~IPostAnimationChannelUpdateFunctor(); // 00 | ||
|
||
// add | ||
virtual void DoPostAnimationChannelUpdate() = 0; // 01 | ||
}; | ||
static_assert(sizeof(IPostAnimationChannelUpdateFunctor) == 0x8); | ||
} |
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,16 @@ | ||
#pragma once | ||
|
||
#include "RE/T/TESForm.h" | ||
|
||
namespace RE | ||
{ | ||
class TESHandleForm : | ||
public TESForm | ||
{ | ||
public: | ||
SF_RTTI_VTABLE(TESHandleForm); | ||
|
||
~TESHandleForm() override; // 00 | ||
}; | ||
static_assert(sizeof(TESHandleForm) == 0x38); | ||
} |
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,5 @@ | ||
#include "RE/I/IAnimationGraphManagerHolder.h" | ||
namespace RE | ||
{ | ||
} | ||
|
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,5 @@ | ||
#include "RE/I/IMovementInterface.h" | ||
namespace RE | ||
{ | ||
} | ||
|
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,5 @@ | ||
#include "RE/I/IPostAnimationChannelUpdateFunctor.h" | ||
namespace RE | ||
{ | ||
} | ||
|
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,5 @@ | ||
#include "RE/T/TESHandleForm.h" | ||
namespace RE | ||
{ | ||
} | ||
|
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 |
---|---|---|
@@ -1 +1,32 @@ | ||
#include "RE/T/TESObjectREFR.h" | ||
|
||
namespace RE | ||
{ | ||
TESObjectREFR* TESObjectREFR::GetAttachedSpaceship() | ||
{ | ||
using func_t = decltype(&TESObjectREFR::GetAttachedSpaceship); | ||
REL::Relocation<func_t> func{ REL::Offset(0x02B3A8D4) }; | ||
return func(this); | ||
} | ||
|
||
bool TESObjectREFR::HasKeyword(BGSKeyword* a_keyword) | ||
{ | ||
using func_t = decltype(&TESObjectREFR::HasKeyword); | ||
REL::Relocation<func_t> func{ REL::Offset(0x0139EE28) }; | ||
return func(this, a_keyword); | ||
} | ||
|
||
bool TESObjectREFR::IsCrimeToActivate() | ||
{ | ||
using func_t = decltype(&TESObjectREFR::IsCrimeToActivate); | ||
REL::Relocation<func_t> func{ REL::Offset(0x01A0DCA0) }; | ||
return func(this); | ||
} | ||
|
||
bool TESObjectREFR::IsInSpace() | ||
{ | ||
using func_t = decltype(&TESObjectREFR::IsInSpace); | ||
REL::Relocation<func_t> func{ REL::Offset(0x01A0E208) }; | ||
return func(this); | ||
} | ||
} |