mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 17:29:55 +00:00
Read a few more NIF types
BSXFlags, NiTransformData, BSBound, BSFadeNode, bhkBlendController
This commit is contained in:
parent
6844800124
commit
1d07361f08
6 changed files with 33 additions and 1 deletions
|
@ -228,4 +228,10 @@ namespace Nif
|
||||||
mSources.post(nif);
|
mSources.post(nif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void bhkBlendController::read(NIFStream *nif)
|
||||||
|
{
|
||||||
|
Controller::read(nif);
|
||||||
|
nif->getUInt(); // Zero
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,5 +183,10 @@ public:
|
||||||
void post(NIFFile *nif) override;
|
void post(NIFFile *nif) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct bhkBlendController : public Controller
|
||||||
|
{
|
||||||
|
void read(NIFStream *nif) override;
|
||||||
|
};
|
||||||
|
|
||||||
} // Namespace
|
} // Namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -80,5 +80,11 @@ void NiFloatsExtraData::read(NIFStream *nif)
|
||||||
nif->getFloats(data, num);
|
nif->getFloats(data, num);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void BSBound::read(NIFStream *nif)
|
||||||
|
{
|
||||||
|
Extra::read(nif);
|
||||||
|
center = nif->getVector3();
|
||||||
|
halfExtents = nif->getVector3();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,5 +109,12 @@ struct NiFloatsExtraData : public Extra
|
||||||
void read(NIFStream *nif) override;
|
void read(NIFStream *nif) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct BSBound : public Extra
|
||||||
|
{
|
||||||
|
osg::Vec3f center, halfExtents;
|
||||||
|
|
||||||
|
void read(NIFStream *nif) override;
|
||||||
|
};
|
||||||
|
|
||||||
} // Namespace
|
} // Namespace
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -119,6 +119,11 @@ static std::map<std::string,RecordFactoryEntry> makeFactory()
|
||||||
factory["NiStringPalette"] = {&construct <NiStringPalette> , RC_NiStringPalette };
|
factory["NiStringPalette"] = {&construct <NiStringPalette> , RC_NiStringPalette };
|
||||||
factory["NiBoolData"] = {&construct <NiBoolData> , RC_NiBoolData };
|
factory["NiBoolData"] = {&construct <NiBoolData> , RC_NiBoolData };
|
||||||
factory["NiSkinPartition"] = {&construct <NiSkinPartition> , RC_NiSkinPartition };
|
factory["NiSkinPartition"] = {&construct <NiSkinPartition> , RC_NiSkinPartition };
|
||||||
|
factory["BSXFlags"] = {&construct <NiIntegerExtraData> , RC_BSXFlags };
|
||||||
|
factory["BSBound"] = {&construct <BSBound> , RC_BSBound };
|
||||||
|
factory["NiTransformData"] = {&construct <NiKeyframeData> , RC_NiKeyframeData };
|
||||||
|
factory["BSFadeNode"] = {&construct <NiNode> , RC_NiNode };
|
||||||
|
factory["bhkBlendController"] = {&construct <bhkBlendController> , RC_bhkBlendController };
|
||||||
return factory;
|
return factory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,10 @@ enum RecordType
|
||||||
RC_NiFloatsExtraData,
|
RC_NiFloatsExtraData,
|
||||||
RC_NiStringPalette,
|
RC_NiStringPalette,
|
||||||
RC_NiBoolData,
|
RC_NiBoolData,
|
||||||
RC_NiSkinPartition
|
RC_NiSkinPartition,
|
||||||
|
RC_BSXFlags,
|
||||||
|
RC_BSBound,
|
||||||
|
RC_bhkBlendController
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Base class for all records
|
/// Base class for all records
|
||||||
|
|
Loading…
Reference in a new issue