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.
- Loading branch information
Showing
19 changed files
with
301 additions
and
45 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
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,14 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
enum class ITEM_REMOVE_REASON | ||
{ | ||
kRemove, | ||
kSteal, | ||
kSelling, | ||
kDropping, | ||
kStoreInContainer, | ||
kStoreInTeammate | ||
}; | ||
} |
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,48 @@ | ||
#pragma once | ||
|
||
#include "RE/N/NiLight.h" | ||
|
||
#include "RE/M/MemoryManager.h" | ||
|
||
namespace RE | ||
{ | ||
class NiDirectionalLight : public NiLight | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_NiDirectionalLight; | ||
inline static constexpr auto Ni_RTTI = NiRTTI_NiDirectionalLight; | ||
inline static constexpr auto VTABLE = VTABLE_NiDirectionalLight; | ||
|
||
~NiDirectionalLight() override; // 00 | ||
|
||
// override (NiLight) | ||
const NiRTTI* GetRTTI() const override; // 02 | ||
NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17 | ||
void LoadBinary(NiStream& a_stream) override; // 18 | ||
void SaveBinary(NiStream& a_stream) override; // 1B | ||
bool IsEqual(NiObject* a_object) override; // 1C | ||
|
||
static NiDirectionalLight* Create() | ||
{ | ||
auto light = malloc<NiDirectionalLight>(); | ||
std::memset((void*)light, 0, sizeof(NiDirectionalLight)); | ||
if (light) { | ||
light->Ctor(); | ||
} | ||
return light; | ||
} | ||
|
||
// members | ||
NiPoint3 worldDir; // 140 | ||
NiColor effectColor; // 14C | ||
|
||
private: | ||
NiDirectionalLight* Ctor() | ||
{ | ||
using func_t = decltype(&NiDirectionalLight::Ctor); | ||
static REL::Relocation<func_t> func{ RELOCATION_ID(69692, 71073) }; | ||
return func(this); | ||
} | ||
}; | ||
static_assert(sizeof(NiDirectionalLight) == 0x158); | ||
} |
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,47 @@ | ||
#pragma once | ||
|
||
#include "RE/N/NiNode.h" | ||
|
||
namespace RE | ||
{ | ||
class NiSwitchNode : public NiNode | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_NiSwitchNode; | ||
inline static constexpr auto Ni_RTTI = NiRTTI_NiSwitchNode; | ||
inline static constexpr auto VTABLE = VTABLE_NiSwitchNode; | ||
|
||
~NiSwitchNode() override; // 00 | ||
|
||
// override (NiNode) | ||
const NiRTTI* GetRTTI() const override; // 02 | ||
NiSwitchNode* AsSwitchNode() override; // 04 | ||
NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17 | ||
void LoadBinary(NiStream& a_stream) override; // 18 | ||
void LinkObject(NiStream& a_stream) override; // 19 | ||
bool RegisterStreamables(NiStream& a_stream) override; // 1A | ||
void SaveBinary(NiStream& a_stream) override; // 1B | ||
bool IsEqual(NiObject* a_object) override; // 1C | ||
void UpdateControllers(NiUpdateData& a_data) override; // 25 | ||
void UpdateDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2C | ||
void UpdateSelectedDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2D | ||
void UpdateRigidDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2E | ||
void UpdateWorldBound() override; // 2F | ||
void OnVisible(NiCullingProcess& a_process) override; // 34 | ||
void AttachChild(NiAVObject* a_child, bool a_firstAvail) override; // 35 | ||
void DetachChild1(NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut) override; // 37 | ||
void DetachChild2(NiAVObject* a_child) override; // 38 | ||
void DetachChildAt1(std::uint32_t a_idx, NiPointer<NiAVObject>& a_childOut) override; // 39 | ||
void DetachChildAt2(std::uint32_t a_idx) override; // 3A | ||
void SetAt1(std::uint32_t a_idx, NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut) override; // 3B | ||
void SetAt2(std::uint32_t a_idx, NiAVObject* a_child) override; // 3C | ||
|
||
// members | ||
std::uint16_t flags; // 128 | ||
std::int32_t index; // 12C | ||
float savedTime; // 130 | ||
std::uint32_t revID; // 134 | ||
NiTPrimitiveArray<std::uint32_t> childRevID; // 138 | ||
}; | ||
static_assert(sizeof(NiSwitchNode) == 0x150); | ||
} |
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
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
Oops, something went wrong.