1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/components/esm/loadingr.hpp

42 lines
905 B
C++
Raw Normal View History

2012-09-23 22:11:08 +04:00
#ifndef OPENMW_ESM_INGR_H
#define OPENMW_ESM_INGR_H
2012-09-17 11:37:50 +04:00
#include <string>
namespace ESM
{
2012-10-01 00:51:54 +04:00
class ESMReader;
class ESMWriter;
/*
* Alchemy ingredient
*/
struct Ingredient
{
static unsigned int sRecordId;
/// Return a string descriptor for this record type. Currently used for debugging / error logs only.
static std::string getRecordType() { return "Ingredient"; }
struct IRDTstruct
{
2012-09-17 11:37:50 +04:00
float mWeight;
int mValue;
int mEffectID[4]; // Effect, 0 or -1 means none
int mSkills[4]; // SkillEnum related to effect
int mAttributes[4]; // Attribute related to effect
};
2012-09-17 11:37:50 +04:00
IRDTstruct mData;
std::string mId, mName, mModel, mIcon, mScript;
void load(ESMReader &esm, bool &isDeleted);
void save(ESMWriter &esm, bool isDeleted = false) const;
void blank();
///< Set record to default state (does not touch the ID).
};
}
#endif