2011-04-08 13:58:21 +00:00
|
|
|
#include "loadmisc.hpp"
|
|
|
|
|
2012-09-23 18:41:41 +00:00
|
|
|
#include "esmreader.hpp"
|
|
|
|
#include "esmwriter.hpp"
|
2012-09-17 07:37:50 +00:00
|
|
|
|
2011-04-08 13:58:21 +00:00
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
2011-06-19 16:14:03 +00:00
|
|
|
void Miscellaneous::load(ESMReader &esm)
|
2011-04-08 13:58:21 +00:00
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
mModel = esm.getHNString("MODL");
|
|
|
|
mName = esm.getHNOString("FNAM");
|
|
|
|
esm.getHNT(mData, "MCDT", 12);
|
|
|
|
mScript = esm.getHNOString("SCRI");
|
|
|
|
mIcon = esm.getHNOString("ITEX");
|
2011-04-08 13:58:21 +00:00
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Miscellaneous::save(ESMWriter &esm)
|
|
|
|
{
|
2012-09-17 07:37:50 +00:00
|
|
|
esm.writeHNCString("MODL", mModel);
|
|
|
|
esm.writeHNOCString("FNAM", mName);
|
|
|
|
esm.writeHNT("MCDT", mData, 12);
|
|
|
|
esm.writeHNOCString("SCRI", mScript);
|
|
|
|
esm.writeHNOCString("ITEX", mIcon);
|
2011-04-08 13:58:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|