1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:19:55 +00:00
openmw-tes3mp/components/esm/loadench.hpp
2012-04-08 11:51:52 +02:00

44 lines
682 B
C++

#ifndef _ESM_ENCH_H
#define _ESM_ENCH_H
#include "record.hpp"
#include "esm_reader.hpp"
#include "esm_writer.hpp"
#include "defs.hpp"
namespace ESM
{
/*
* Enchantments
*/
struct Enchantment : public Record
{
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);
int getName() { return REC_ENCH; }
};
}
#endif