2011-04-08 13:58:21 +00:00
|
|
|
#include "loaddoor.hpp"
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
void Door::load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
model = esm.getHNString("MODL");
|
|
|
|
name = esm.getHNOString("FNAM");
|
|
|
|
script = esm.getHNOString("SCRI");
|
|
|
|
openSound = esm.getHNOString("SNAM");
|
|
|
|
closeSound = esm.getHNOString("ANAM");
|
|
|
|
}
|
2012-04-06 19:04:30 +00:00
|
|
|
void Door::save(ESMWriter &esm)
|
|
|
|
{
|
2012-04-13 22:14:04 +00:00
|
|
|
esm.writeHNCString("MODL", model);
|
|
|
|
esm.writeHNOCString("FNAM", name);
|
|
|
|
esm.writeHNOCString("SCRI", script);
|
|
|
|
esm.writeHNOCString("SNAM", openSound);
|
|
|
|
esm.writeHNOCString("ANAM", closeSound);
|
2012-04-06 19:04:30 +00:00
|
|
|
}
|
2011-04-08 13:58:21 +00:00
|
|
|
|
|
|
|
}
|