1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 17:19:56 +00:00
openmw-tes3mp/components/esm/loadench.hpp

43 lines
611 B
C++
Raw Normal View History

2012-09-23 18:11:08 +00:00
#ifndef OPENMW_ESM_ENCH_H
#define OPENMW_ESM_ENCH_H
2012-09-17 07:37:50 +00:00
#include "effectlist.hpp"
namespace ESM
{
2012-09-30 20:51:54 +00:00
class ESMReader;
class ESMWriter;
/*
* Enchantments
*/
struct Enchantment
{
enum Type
{
CastOnce = 0,
WhenStrikes = 1,
WhenUsed = 2,
ConstantEffect = 3
};
struct ENDTstruct
{
2012-09-17 07:37:50 +00:00
int mType;
int mCost;
int mCharge;
int mAutocalc; // Guessing this is 1 if we are supposed to auto
// calculate
};
2012-09-17 07:37:50 +00:00
ENDTstruct mData;
EffectList mEffects;
void load(ESMReader &esm);
void save(ESMWriter &esm);
};
}
#endif