mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 21:23:52 +00:00
Recognize NiFlipController
This commit is contained in:
parent
50bb92beb3
commit
1051fa51a7
4 changed files with 26 additions and 0 deletions
|
@ -303,5 +303,28 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class NiFlipController : public Controller
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
int mTexSlot;
|
||||||
|
float mDelta; // Time between two flips. delta = (start_time - stop_time) / num_sources
|
||||||
|
NiSourceTextureList mSources;
|
||||||
|
|
||||||
|
void read(NIFStream *nif)
|
||||||
|
{
|
||||||
|
Controller::read(nif);
|
||||||
|
mTexSlot = nif->getUInt();
|
||||||
|
/*unknown=*/nif->getUInt();/*0?*/
|
||||||
|
mDelta = nif->getFloat();
|
||||||
|
mSources.read(nif);
|
||||||
|
}
|
||||||
|
|
||||||
|
void post(NIFFile *nif)
|
||||||
|
{
|
||||||
|
Controller::post(nif);
|
||||||
|
mSources.post(nif);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
} // Namespace
|
} // Namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -235,6 +235,7 @@ static const RecordFactoryEntry recordFactories [] = {
|
||||||
{ "NiMaterialColorController", &construct <NiMaterialColorController >, RC_NiMaterialColorController },
|
{ "NiMaterialColorController", &construct <NiMaterialColorController >, RC_NiMaterialColorController },
|
||||||
{ "NiBSPArrayController", &construct <NiBSPArrayController >, RC_NiBSPArrayController },
|
{ "NiBSPArrayController", &construct <NiBSPArrayController >, RC_NiBSPArrayController },
|
||||||
{ "NiParticleSystemController", &construct <NiParticleSystemController >, RC_NiParticleSystemController },
|
{ "NiParticleSystemController", &construct <NiParticleSystemController >, RC_NiParticleSystemController },
|
||||||
|
{ "NiFlipController", &construct <NiFlipController >, RC_NiFlipController },
|
||||||
{ "NiAmbientLight", &construct <NiLight >, RC_NiLight },
|
{ "NiAmbientLight", &construct <NiLight >, RC_NiLight },
|
||||||
{ "NiDirectionalLight", &construct <NiLight >, RC_NiLight },
|
{ "NiDirectionalLight", &construct <NiLight >, RC_NiLight },
|
||||||
{ "NiTextureEffect", &construct <NiTextureEffect >, RC_NiTextureEffect },
|
{ "NiTextureEffect", &construct <NiTextureEffect >, RC_NiTextureEffect },
|
||||||
|
|
|
@ -60,6 +60,7 @@ enum RecordType
|
||||||
RC_NiMaterialColorController,
|
RC_NiMaterialColorController,
|
||||||
RC_NiBSPArrayController,
|
RC_NiBSPArrayController,
|
||||||
RC_NiParticleSystemController,
|
RC_NiParticleSystemController,
|
||||||
|
RC_NiFlipController,
|
||||||
RC_NiBSAnimationNode,
|
RC_NiBSAnimationNode,
|
||||||
RC_NiLight,
|
RC_NiLight,
|
||||||
RC_NiTextureEffect,
|
RC_NiTextureEffect,
|
||||||
|
|
|
@ -163,6 +163,7 @@ typedef RecordPtrT<NiAutoNormalParticlesData> NiAutoNormalParticlesDataPtr;
|
||||||
|
|
||||||
typedef RecordListT<Node> NodeList;
|
typedef RecordListT<Node> NodeList;
|
||||||
typedef RecordListT<Property> PropertyList;
|
typedef RecordListT<Property> PropertyList;
|
||||||
|
typedef RecordListT<NiSourceTexture> NiSourceTextureList;
|
||||||
|
|
||||||
} // Namespace
|
} // Namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue