openmw-tes3coop/components/esm/loaddoor.cpp
2012-04-06 21:14:52 +02:00

23 lines
518 B
C++

#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");
}
void Door::save(ESMWriter &esm)
{
esm.writeHNString("MODL", model);
esm.writeHNOString("FNAM", name);
esm.writeHNOString("SCRI", script);
esm.writeHNOString("SNAM", openSound);
esm.writeHNOString("ANAM", closeSound);
}
}