mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-15 15:49:56 +00:00
36 lines
743 B
C++
36 lines
743 B
C++
#ifndef _ESM_MISC_H
|
|
#define _ESM_MISC_H
|
|
|
|
#include "record.hpp"
|
|
#include "esm_reader.hpp"
|
|
#include "esm_writer.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
|
|
{
|
|
float weight;
|
|
int value;
|
|
int isKey; // There are many keys in Morrowind.esm that has this
|
|
// set to 0. TODO: Check what this field corresponds to
|
|
// in the editor.
|
|
};
|
|
MCDTstruct data;
|
|
|
|
std::string name, model, icon, script;
|
|
|
|
void load(ESMReader &esm);
|
|
void save(ESMWriter &esm);
|
|
|
|
int getName() { return REC_MISC; }
|
|
};
|
|
}
|
|
#endif
|