mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
44 lines
636 B
C++
44 lines
636 B
C++
|
#ifndef _ESM_APPA_H
|
||
|
#define _ESM_APPA_H
|
||
|
|
||
|
#include "esm_reader.hpp"
|
||
|
|
||
|
namespace ESM {
|
||
|
|
||
|
/*
|
||
|
* Alchemist apparatus
|
||
|
*/
|
||
|
|
||
|
struct Apparatus
|
||
|
{
|
||
|
enum AppaType
|
||
|
{
|
||
|
MortarPestle = 0,
|
||
|
Albemic = 1,
|
||
|
Calcinator = 2,
|
||
|
Retort = 3
|
||
|
};
|
||
|
|
||
|
struct AADTstruct
|
||
|
{
|
||
|
int type;
|
||
|
float quality;
|
||
|
float weight;
|
||
|
int value;
|
||
|
};
|
||
|
|
||
|
AADTstruct data;
|
||
|
std::string model, icon, script, name;
|
||
|
|
||
|
void load(ESMReader &esm)
|
||
|
{
|
||
|
model = esm.getHNString("MODL");
|
||
|
name = esm.getHNString("FNAM");
|
||
|
esm.getHNT(data, "AADT", 16);
|
||
|
script = esm.getHNOString("SCRI");
|
||
|
icon = esm.getHNString("ITEX");
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
#endif
|