1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-04 21:40:03 +00:00
OpenMW/components/esm/loadingr.hpp

36 lines
622 B
C++
Raw Normal View History

#ifndef _ESM_INGR_H
#define _ESM_INGR_H
#include "record.hpp"
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
/*
* Alchemy ingredient
*/
struct Ingredient : public Record
{
struct IRDTstruct
{
float weight;
int value;
int effectID[4]; // Effect, 0 or -1 means none
int skills[4]; // SkillEnum related to effect
int attributes[4]; // Attribute related to effect
};
IRDTstruct data;
std::string name, model, icon, script;
void load(ESMReader &esm);
void save(ESMWriter &esm);
int getName() { return REC_INGR; }
};
}
#endif