Read BSLagBoneController

macos_ci_fix
Alexei Kotov 1 year ago
parent 1aabc9aee5
commit 73a12eb74a

@ -500,6 +500,15 @@ namespace Nif
mData2.post(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) void NiControllerManager::read(NIFStream* nif)
{ {
NiTimeController::read(nif); NiTimeController::read(nif);

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

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

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

Loading…
Cancel
Save