1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00
OpenMW/components/esm/loadench.hpp
2012-04-06 21:04:30 +02:00

42 lines
604 B
C++

#ifndef _ESM_ENCH_H
#define _ESM_ENCH_H
#include "esm_reader.hpp"
#include "esm_writer.hpp"
#include "defs.hpp"
namespace ESM
{
/*
* Enchantments
*/
struct Enchantment
{
enum Type
{
CastOnce = 0,
WhenStrikes = 1,
WhenUsed = 2,
ConstantEffect = 3
};
struct ENDTstruct
{
int type;
int cost;
int charge;
int autocalc; // Guessing this is 1 if we are supposed to auto
// calculate
};
ENDTstruct data;
EffectList effects;
void load(ESMReader &esm);
void save(ESMWriter &esm);
};
}
#endif