From 4265524ad50b1c71e5782c88c1fcbf7dc93c08ea Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Thu, 20 Jul 2023 04:04:49 +0300 Subject: [PATCH] Read BSRangeNode and BSBlastNode --- components/nif/niffile.cpp | 2 ++ components/nif/node.cpp | 8 ++++++++ components/nif/node.hpp | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/components/nif/niffile.cpp b/components/nif/niffile.cpp index c74c9cf790..c767e262a4 100644 --- a/components/nif/niffile.cpp +++ b/components/nif/niffile.cpp @@ -145,6 +145,8 @@ namespace Nif { "BSValueNode", &construct }, { "BSOrderedNode", &construct }, { "BSMultiBoundNode", &construct }, + { "BSRangeNode", &construct }, + { "BSBlastNode", &construct }, { "bhkBlendController", &construct }, { "NiFloatInterpolator", &construct }, { "NiBoolInterpolator", &construct }, diff --git a/components/nif/node.cpp b/components/nif/node.cpp index 91922c4e43..7e19c9d74f 100644 --- a/components/nif/node.cpp +++ b/components/nif/node.cpp @@ -497,4 +497,12 @@ namespace Nif nif->read(mAlphaSortBound); nif->read(mStaticBound); } + + void BSRangeNode::read(NIFStream* nif) + { + NiNode::read(nif); + nif->read(mMin); + nif->read(mMax); + nif->read(mCurrent); + } } diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 801728c201..38ff36049c 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -392,5 +392,13 @@ namespace Nif void read(NIFStream* nif) override; }; + + struct BSRangeNode : NiNode + { + uint8_t mMin, mMax; + uint8_t mCurrent; + + void read(NIFStream* nif) override; + }; } // Namespace #endif