mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 15:09:43 +00:00
Read BSFrustumFOVController and BSKeyframeController
This commit is contained in:
parent
5f504688ad
commit
e207285323
4 changed files with 26 additions and 0 deletions
|
@ -486,6 +486,20 @@ namespace Nif
|
|||
nif->read(mControlledColor);
|
||||
}
|
||||
|
||||
void BSKeyframeController::read(NIFStream* nif)
|
||||
{
|
||||
NiKeyframeController::read(nif);
|
||||
|
||||
mData2.read(nif);
|
||||
}
|
||||
|
||||
void BSKeyframeController::post(Reader& nif)
|
||||
{
|
||||
NiKeyframeController::post(nif);
|
||||
|
||||
mData2.post(nif);
|
||||
}
|
||||
|
||||
void NiControllerManager::read(NIFStream* nif)
|
||||
{
|
||||
NiTimeController::read(nif);
|
||||
|
|
|
@ -319,6 +319,14 @@ namespace Nif
|
|||
void read(NIFStream* nif) override;
|
||||
};
|
||||
|
||||
struct BSKeyframeController : NiKeyframeController
|
||||
{
|
||||
NiKeyframeDataPtr mData2;
|
||||
|
||||
void read(NIFStream* nif) override;
|
||||
void post(Reader& nif) override;
|
||||
};
|
||||
|
||||
struct NiControllerManager : public NiTimeController
|
||||
{
|
||||
bool mCumulative;
|
||||
|
|
|
@ -123,6 +123,8 @@ namespace Nif
|
|||
&construct<NiMultiTargetTransformController, RC_NiMultiTargetTransformController> },
|
||||
|
||||
// Bethesda
|
||||
{ "BSFrustumFOVController", &construct<NiFloatInterpController, RC_BSFrustumFOVController> },
|
||||
{ "BSKeyframeController", &construct<BSKeyframeController, RC_BSKeyframeController> },
|
||||
{ "BSMaterialEmittanceMultController",
|
||||
&construct<NiFloatInterpController, RC_BSMaterialEmittanceMultController> },
|
||||
{ "BSRefractionFirePeriodController",
|
||||
|
|
|
@ -69,8 +69,10 @@ namespace Nif
|
|||
RC_BSEffectShaderPropertyColorController,
|
||||
RC_BSEffectShaderPropertyFloatController,
|
||||
RC_BSExtraData,
|
||||
RC_BSFrustumFOVController,
|
||||
RC_BSFurnitureMarker,
|
||||
RC_BSInvMarker,
|
||||
RC_BSKeyframeController,
|
||||
RC_BSLightingShaderProperty,
|
||||
RC_BSLightingShaderPropertyColorController,
|
||||
RC_BSLightingShaderPropertyFloatController,
|
||||
|
|
Loading…
Reference in a new issue