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
27 changed files
with
305 additions
and
100 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
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,18 @@ | ||
#pragma once | ||
|
||
namespace RE | ||
{ | ||
enum class INTERFACE_LIGHT_SCHEME | ||
{ | ||
kJournal = 0, | ||
kInventory, | ||
kInventoryMagic, | ||
kBook, | ||
kLoading, | ||
kUnk05, | ||
kStats, | ||
kLockpicking, | ||
|
||
kTotal = 8 | ||
}; | ||
} |
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,57 @@ | ||
#pragma once | ||
|
||
#include "RE/N/NiNode.h" | ||
|
||
namespace RE | ||
{ | ||
class NiBillboardNode : public NiNode | ||
{ | ||
public: | ||
inline static constexpr auto RTTI = RTTI_NiBillboardNode; | ||
inline static constexpr auto Ni_RTTI = NiRTTI_NiBillboardNode; | ||
|
||
enum | ||
{ | ||
FACE_MODE_POS = 0, | ||
FACE_MODE_MASK = 7, | ||
}; | ||
|
||
enum class FaceMode | ||
{ | ||
kAlwaysFaceCamera, | ||
kRotateAboutUp, | ||
kRigidFaceCamera, | ||
kAlwaysFaceCenter, | ||
kRigidFaceCenter, | ||
kBSRotateAboutUp | ||
}; | ||
|
||
~NiBillboardNode() override; // 00 | ||
|
||
// override (NiNode) | ||
const NiRTTI* GetRTTI() const override; // 02 | ||
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 UpdateWorldBound() override; // 2F | ||
void UpdateWorldData(NiUpdateData* a_data) override; // 30 | ||
void OnVisible(NiCullingProcess& a_process) override; // 34 | ||
|
||
[[nodiscard]] FaceMode GetMode() const | ||
{ | ||
return static_cast<FaceMode>(userFlags & FACE_MODE_MASK); | ||
} | ||
|
||
void SetMode(FaceMode a_mode) | ||
{ | ||
userFlags = (std::to_underlying(a_mode) << FACE_MODE_POS) | userFlags & ~FACE_MODE_MASK; | ||
} | ||
|
||
// members | ||
std::uint16_t userFlags; // 128 | ||
}; | ||
static_assert(sizeof(NiBillboardNode) == 0x130); | ||
} |
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.