Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions include/RE/N/NiNode.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#pragma once

#include "RE/B/BSTArray.h"
#include "RE/N/NiAVObject.h"
#include "RE/N/NiTransform.h"

namespace RE
{
class __declspec(novtable) NiNode :
public NiAVObject
{
public:
SF_RTTI(NiNode);

//add
virtual ~NiNode() = default;
virtual NiNode* GetAsNiNode();
virtual void* AddChild(NiAVObject* child);
virtual bool* RemoveChild(NiAVObject* child);
virtual NiAVObject* GetObjectByName(const BSFixedString& name);
virtual NiAVObject* FindObjectRecursive(const BSFixedString& name);
virtual NiTransform* GetLocalTransform();
virtual void* SetLocalTransform(const NiTransform& transform);

// members
BSTArray<NiPointer<NiAVObject>> children;
void* extraData;
std::uint32_t childCount;
std::uint32_t flags;
std::uint64_t pad148;

static_assert(sizeof(BSTArray<NiPointer<NiAVObject>>) == 0x8);
static_assert(offsetof(NiNode, children) == 0x130);
static_assert(offsetof(NiNode, extraData) == 0x138);
static_assert(offsetof(NiNode, childCount) == 0x140);
static_assert(offsetof(NiNode, flags) == 0x144);
static_assert(sizeof(NiNode) == 0x150);
};
}
5 changes: 3 additions & 2 deletions include/SFSE/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ namespace SFSE
constexpr REL::Version RUNTIME_SF_1_14_70(1, 14, 70, 0);
constexpr REL::Version RUNTIME_SF_1_14_74(1, 14, 74, 0);
constexpr REL::Version RUNTIME_SF_1_15_216(1, 15, 216, 0);
constexpr auto RUNTIME_LATEST = RUNTIME_SF_1_15_216;
constexpr REL::Version RUNTIME_SF_1_15_222(1, 15, 222, 0);
constexpr auto RUNTIME_LATEST = RUNTIME_SF_1_15_222;

constexpr REL::Version SFSE_PACK_LATEST(0, 2, 17, 0);
constexpr REL::Version SFSE_PACK_LATEST(0, 2, 18, 0);
}
Loading