1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 18:59:57 +00:00
openmw/components/esm/loadingr.hpp
2012-04-06 21:04:30 +02:00

32 lines
544 B
C++

#ifndef _ESM_INGR_H
#define _ESM_INGR_H
#include "esm_reader.hpp"
#include "esm_writer.hpp"
namespace ESM
{
/*
* Alchemy ingredient
*/
struct Ingredient
{
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);
};
}
#endif