Fill in NiControllerManager fields

7220-lua-add-a-general-purpose-lexical-parser
Alexei Kotov 2 years ago
parent 091fcd837e
commit d7834c43e5

@ -432,9 +432,15 @@ namespace Nif
{
Controller::read(nif);
mCumulative = nif->getBoolean();
unsigned int numSequences = nif->getUInt();
nif->skip(4 * numSequences); // Controller sequences
nif->skip(4); // Object palette
readRecordList(nif, mSequences);
mObjectPalette.read(nif);
}
void NiControllerManager::post(Reader& nif)
{
Controller::post(nif);
postRecordList(nif, mSequences);
mObjectPalette.post(nif);
}
void NiPoint3Interpolator::read(NIFStream* nif)

@ -296,7 +296,10 @@ namespace Nif
struct NiControllerManager : public Controller
{
bool mCumulative;
NiControllerSequenceList mSequences;
NiDefaultAVObjectPalettePtr mObjectPalette;
void read(NIFStream* nif) override;
void post(Reader& nif) override;
};
struct NiInterpolator : public Record

@ -143,6 +143,8 @@ namespace Nif
struct NiStringPalette;
struct NiControllerManager;
struct NiBlendInterpolator;
struct NiDefaultAVObjectPalette;
struct NiControllerSequence;
using NodePtr = RecordPtrT<Node>;
using ExtraPtr = RecordPtrT<Extra>;
@ -176,6 +178,7 @@ namespace Nif
using NiStringPalettePtr = RecordPtrT<NiStringPalette>;
using NiControllerManagerPtr = RecordPtrT<NiControllerManager>;
using NiBlendInterpolatorPtr = RecordPtrT<NiBlendInterpolator>;
using NiDefaultAVObjectPalettePtr = RecordPtrT<NiDefaultAVObjectPalette>;
using NodeList = RecordListT<Node>;
using PropertyList = RecordListT<Property>;
@ -185,6 +188,7 @@ namespace Nif
using NiTriStripsDataList = RecordListT<NiTriStripsData>;
using bhkShapeList = RecordListT<bhkShape>;
using bhkSerializableList = RecordListT<bhkSerializable>;
using NiControllerSequenceList = RecordListT<NiControllerSequence>;
} // Namespace
#endif

Loading…
Cancel
Save