You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
15 years ago
|
|
|
#ifndef _ESM_MISC_H
|
|
|
|
#define _ESM_MISC_H
|
|
|
|
|
|
|
|
#include "esm_reader.hpp"
|
|
|
|
|
|
|
|
namespace ESM {
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Misc inventory items, basically things that have no use but can be
|
|
|
|
* carried, bought and sold. It also includes keys.
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct Misc
|
|
|
|
{
|
|
|
|
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.
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
15 years ago
|
|
|
};
|
|
|
|
MCDTstruct data;
|
|
|
|
|
|
|
|
std::string name, model, icon, script;
|
|
|
|
|
|
|
|
void load(ESMReader &esm)
|
|
|
|
{
|
|
|
|
model = esm.getHNString("MODL");
|
|
|
|
name = esm.getHNOString("FNAM");
|
|
|
|
esm.getHNT(data, "MCDT", 12);
|
|
|
|
script = esm.getHNOString("SCRI");
|
|
|
|
icon = esm.getHNOString("ITEX");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|