2011-04-08 17:58:21 +04: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 21:04:30 +02:00
|
|
|
void Door::save(ESMWriter &esm)
|
|
|
|
{
|
|
|
|
esm.writeHNString("MODL", model);
|
2012-04-06 21:14:52 +02:00
|
|
|
esm.writeHNOString("FNAM", name);
|
|
|
|
esm.writeHNOString("SCRI", script);
|
|
|
|
esm.writeHNOString("SNAM", openSound);
|
|
|
|
esm.writeHNOString("ANAM", closeSound);
|
2012-04-06 21:04:30 +02:00
|
|
|
}
|
2011-04-08 17:58:21 +04:00
|
|
|
|
|
|
|
}
|