openmw-tes3coop/esm/loaddoor.hpp
2010-02-19 09:12:49 +01:00

19 lines
385 B
C++

#ifndef _ESM_DOOR_H
#define _ESM_DOOR_H
#include "esm_reader.hpp"
struct Door
{
std::string name, model, script, openSound, closeSound;
void load(ESMReader &esm)
{
model = esm.getHNString("MODL");
name = esm.getHNOString("FNAM");
script = esm.getHNOString("SCRI");
openSound = esm.getHNOString("SNAM");
closeSound = esm.getHNOString("ANAM");
}
};
#endif