1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-30 09:15:38 +00:00

Read BSLagBoneController

This commit is contained in:
Alexei Kotov 2023-09-20 08:53:35 +03:00
parent 1aabc9aee5
commit 73a12eb74a
4 changed files with 20 additions and 0 deletions

View file

@ -500,6 +500,15 @@ namespace Nif
mData2.post(nif);
}
void BSLagBoneController::read(NIFStream* nif)
{
NiTimeController::read(nif);
nif->read(mLinearVelocity);
nif->read(mLinearRotation);
nif->read(mMaximumDistance);
}
void NiControllerManager::read(NIFStream* nif)
{
NiTimeController::read(nif);

View file

@ -327,6 +327,15 @@ namespace Nif
void post(Reader& nif) override;
};
struct BSLagBoneController : NiTimeController
{
float mLinearVelocity;
float mLinearRotation;
float mMaximumDistance;
void read(NIFStream* nif) override;
};
struct NiControllerManager : public NiTimeController
{
bool mCumulative;

View file

@ -126,6 +126,7 @@ namespace Nif
// Bethesda
{ "BSFrustumFOVController", &construct<NiFloatInterpController, RC_BSFrustumFOVController> },
{ "BSKeyframeController", &construct<BSKeyframeController, RC_BSKeyframeController> },
{ "BSLagBoneController", &construct<BSLagBoneController, RC_BSLagBoneController> },
{ "BSMaterialEmittanceMultController",
&construct<NiFloatInterpController, RC_BSMaterialEmittanceMultController> },
{ "BSNiAlphaPropertyTestRefController",

View file

@ -79,6 +79,7 @@ namespace Nif
RC_BSFurnitureMarker,
RC_BSInvMarker,
RC_BSKeyframeController,
RC_BSLagBoneController,
RC_BSLightingShaderProperty,
RC_BSLightingShaderPropertyColorController,
RC_BSLightingShaderPropertyFloatController,