1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:19:56 +00:00
openmw-tes3mp/components/nif/extra.cpp

35 lines
555 B
C++
Raw Normal View History

#include "extra.hpp"
namespace Nif
{
void NiStringExtraData::read(NIFStream *nif)
{
Extra::read(nif);
string = nif->getString();
}
void NiTextKeyExtraData::read(NIFStream *nif)
{
Extra::read(nif);
int keynum = nif->getInt();
list.resize(keynum);
for(int i=0; i<keynum; i++)
{
list[i].time = nif->getFloat();
list[i].text = nif->getString();
}
}
void NiVertWeightsExtraData::read(NIFStream *nif)
{
Extra::read(nif);
nif->skip(nif->getUShort() * sizeof(float)); // vertex weights I guess
}
}