1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 06:23:54 +00:00
openmw/components/esm3/loaddoor.hpp

32 lines
704 B
C++
Raw Normal View History

2012-09-23 18:11:08 +00:00
#ifndef OPENMW_ESM_DOOR_H
#define OPENMW_ESM_DOOR_H
2010-02-19 08:12:49 +00:00
2012-09-17 07:37:50 +00:00
#include <string>
2022-06-04 14:07:59 +00:00
#include "components/esm/defs.hpp"
namespace ESM
{
2010-02-19 13:23:22 +00:00
2012-09-30 20:51:54 +00:00
class ESMReader;
class ESMWriter;
struct Door
2010-02-19 08:12:49 +00:00
{
2022-06-04 14:07:59 +00:00
constexpr static unsigned int sRecordId = REC_DOOR;
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string_view getRecordType() { return "Door"; }
unsigned int mRecordFlags;
std::string mId, mName, mModel, mScript, mOpenSound, mCloseSound;
2010-02-19 08:12:49 +00:00
void load(ESMReader &esm, bool &isDeleted);
void save(ESMWriter &esm, bool isDeleted = false) const;
void blank();
///< Set record to default state (does not touch the ID).
2010-02-19 08:12:49 +00:00
};
2010-02-19 13:23:22 +00:00
}
2010-02-19 08:12:49 +00:00
#endif