mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:15:38 +00:00
Read BSLagBoneController
This commit is contained in:
parent
1aabc9aee5
commit
73a12eb74a
4 changed files with 20 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -79,6 +79,7 @@ namespace Nif
|
|||
RC_BSFurnitureMarker,
|
||||
RC_BSInvMarker,
|
||||
RC_BSKeyframeController,
|
||||
RC_BSLagBoneController,
|
||||
RC_BSLightingShaderProperty,
|
||||
RC_BSLightingShaderPropertyColorController,
|
||||
RC_BSLightingShaderPropertyFloatController,
|
||||
|
|
Loading…
Reference in a new issue