2011-04-08 17:58:21 +04:00
|
|
|
#include "loadmisc.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
2011-06-19 18:14:03 +02:00
|
|
|
void Miscellaneous::load(ESMReader &esm)
|
2011-04-08 17:58:21 +04: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 21:04:30 +02:00
|
|
|
void Miscellaneous::save(ESMWriter &esm)
|
|
|
|
{
|
2012-04-14 00:14:04 +02:00
|
|
|
esm.writeHNCString("MODL", model);
|
|
|
|
esm.writeHNOCString("FNAM", name);
|
2012-04-06 21:04:30 +02:00
|
|
|
esm.writeHNT("MCDT", data, 12);
|
2012-04-14 00:14:04 +02:00
|
|
|
esm.writeHNOCString("SCRI", script);
|
|
|
|
esm.writeHNOCString("ITEX", icon);
|
2012-04-06 21:04:30 +02:00
|
|
|
}
|
2011-04-08 17:58:21 +04:00
|
|
|
|
|
|
|
}
|