2015-02-23 20:06:10 +00:00
|
|
|
#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);
|
|
|
|
|
2019-09-13 16:54:19 +00:00
|
|
|
nif->skip(nif->getUShort() * sizeof(float)); // vertex weights I guess
|
2015-02-23 20:06:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|