2011-04-08 13:58:21 +00:00
|
|
|
#include "loadmisc.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
2011-06-19 16:14:03 +00:00
|
|
|
void Miscellaneous::load(ESMReader &esm)
|
2011-04-08 13:58:21 +00:00
|
|
|
{
|
|
|
|
model = esm.getHNString("MODL");
|
|
|
|
name = esm.getHNOString("FNAM");
|
|
|
|
esm.getHNT(data, "MCDT", 12);
|
|
|
|
script = esm.getHNOString("SCRI");
|
|
|
|
icon = esm.getHNOString("ITEX");
|
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Miscellaneous::save(ESMWriter &esm)
|
|
|
|
{
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNCString("MODL", model);
|
|
|
|
esm.writeHNOCString("FNAM", name);
|
2012-04-06 19:04:30 +00:00
|
|
|
esm.writeHNT("MCDT", data, 12);
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNOCString("SCRI", script);
|
|
|
|
esm.writeHNOCString("ITEX", icon);
|
2012-04-06 19:04:30 +00:00
|
|
|
}
|
2011-04-08 13:58:21 +00:00
|
|
|
|
|
|
|
}
|