openmw/components/esm/loadmisc.hpp

37 lines
718 B
C++
Raw Normal View History

#ifndef _ESM_MISC_H
#define _ESM_MISC_H
2012-09-17 11:37:50 +04:00
#include <string>
#include "record.hpp"
namespace ESM
{
/*
* Misc inventory items, basically things that have no use but can be
* carried, bought and sold. It also includes keys.
*/
struct Miscellaneous : public Record
{
struct MCDTstruct
{
2012-09-17 11:37:50 +04:00
float mWeight;
int mValue;
int mIsKey; // There are many keys in Morrowind.esm that has this
// set to 0. TODO: Check what this field corresponds to
// in the editor.
};
2012-09-17 11:37:50 +04:00
MCDTstruct mData;
2012-09-17 11:37:50 +04:00
std::string mName, mModel, mIcon, mScript;
void load(ESMReader &esm);
void save(ESMWriter &esm);
int getName() { return REC_MISC; }
};
}
#endif