forked from Ryan-rsm-McKenzie/CommonLibSSE
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from RafearTheModder/PO3-PoachedBugsVR-RE-PR
RE Work From Making Poached Bugs VR
- Loading branch information
Showing
6 changed files
with
74 additions
and
1 deletion.
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,27 @@ | ||
#pragma once | ||
|
||
#include "RE/B/BGSEntryPointFunctionData.h" | ||
|
||
namespace RE | ||
{ | ||
class SpellItem; | ||
|
||
class BGSEntryPointFunctionDataSpellItem : public BGSEntryPointFunctionData | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_BGSEntryPointFunctionDataSpellItem; | ||
inline static constexpr auto VTABLE = VTABLE_BGSEntryPointFunctionDataSpellItem; | ||
// Override | ||
virtual ~BGSEntryPointFunctionDataSpellItem() override; // 0 | ||
|
||
// Override (BGSEntryPointFunctionData) | ||
[[nodiscard]] virtual FunctionType GetType() const override; // 1 | ||
virtual bool LoadFunctionData(TESFile* a_mod) override; // 2 | ||
virtual void ResolveForms(TESFile* a_form) override; // 3 | ||
|
||
// Member variables | ||
SpellItem* spell; // 8 | ||
}; | ||
static_assert(offsetof(BGSEntryPointFunctionDataSpellItem, spell) == 0x8); | ||
static_assert(sizeof(BGSEntryPointFunctionDataSpellItem) == 0x10); | ||
} |
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,28 @@ | ||
#pragma once | ||
|
||
#include "RE/M/MagicTarget.h" | ||
|
||
namespace RE | ||
{ | ||
class ActiveEffect; | ||
|
||
class FindMaxMagnitudeVisitor : | ||
public MagicTarget::ForEachActiveEffectVisitor | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_FindMaxMagnitudeVisitor; | ||
inline static constexpr auto VTABLE = VTABLE_FindMaxMagnitudeVisitor; | ||
|
||
virtual ~FindMaxMagnitudeVisitor(){}; // 00 | ||
|
||
// add | ||
virtual BSContainer::ForEachResult Accept(ActiveEffect* a_effect) override; // 01 | ||
|
||
// Member variables | ||
ActiveEffect* activeEffect{ nullptr }; // 8 | ||
float maxMagnitude{ -1.0F }; // 10 | ||
}; | ||
static_assert(sizeof(FindMaxMagnitudeVisitor) == 0x18); | ||
|
||
|
||
} // 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
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,13 @@ | ||
#pragma once | ||
|
||
#include "RE/F/FindMaxMagnitudeVisitor.h" | ||
|
||
namespace RE | ||
{ | ||
BSContainer::ForEachResult FindMaxMagnitudeVisitor::Accept(ActiveEffect* a_effect) | ||
{ | ||
using func_t = decltype(&FindMaxMagnitudeVisitor::Accept); | ||
REL::Relocation<func_t> func{ reinterpret_cast<std::uintptr_t*>(RELOCATION_ID(257550, 205805).address())[0x1] }; // AE address/ID untested | ||
return func(this, a_effect); | ||
} | ||
} // namespace RE |