mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 07:15:36 +00:00
Read BSRangeNode and BSBlastNode
This commit is contained in:
parent
fa39f04a3a
commit
4265524ad5
3 changed files with 18 additions and 0 deletions
|
@ -145,6 +145,8 @@ namespace Nif
|
|||
{ "BSValueNode", &construct<BSValueNode, RC_NiNode> },
|
||||
{ "BSOrderedNode", &construct<BSOrderedNode, RC_NiNode> },
|
||||
{ "BSMultiBoundNode", &construct<BSMultiBoundNode, RC_NiNode> },
|
||||
{ "BSRangeNode", &construct<BSRangeNode, RC_NiNode> },
|
||||
{ "BSBlastNode", &construct<BSRangeNode, RC_NiNode> },
|
||||
{ "bhkBlendController", &construct<bhkBlendController, RC_bhkBlendController> },
|
||||
{ "NiFloatInterpolator", &construct<NiFloatInterpolator, RC_NiFloatInterpolator> },
|
||||
{ "NiBoolInterpolator", &construct<NiBoolInterpolator, RC_NiBoolInterpolator> },
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue