2012-09-23 22:11:08 +04:00
|
|
|
#ifndef OPENMW_ESM_ALCH_H
|
|
|
|
#define OPENMW_ESM_ALCH_H
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "effectlist.hpp"
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
namespace ESM
|
|
|
|
{
|
2012-10-01 00:51:54 +04:00
|
|
|
|
|
|
|
class ESMReader;
|
|
|
|
class ESMWriter;
|
|
|
|
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
/*
|
|
|
|
* Alchemy item (potions)
|
|
|
|
*/
|
|
|
|
|
2012-09-30 23:34:53 +04:00
|
|
|
struct Potion
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
{
|
2011-04-06 20:11:08 +04:00
|
|
|
struct ALDTstruct
|
|
|
|
{
|
2012-09-17 11:37:50 +04:00
|
|
|
float mWeight;
|
|
|
|
int mValue;
|
|
|
|
int mAutoCalc;
|
2011-04-06 20:11:08 +04:00
|
|
|
};
|
2012-09-17 11:37:50 +04:00
|
|
|
ALDTstruct mData;
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
|
2012-09-30 23:34:53 +04:00
|
|
|
std::string mId, mName, mModel, mIcon, mScript;
|
2012-09-17 11:37:50 +04:00
|
|
|
EffectList mEffects;
|
2012-07-13 13:01:30 +02:00
|
|
|
|
2011-04-06 20:11:08 +04:00
|
|
|
void load(ESMReader &esm);
|
2012-04-06 21:04:30 +02:00
|
|
|
void save(ESMWriter &esm);
|
2012-09-30 23:34:53 +04:00
|
|
|
};
|
Finished ALCH, APPA, BOOK, CLOT, CREC, ENCH, GLOB, INGR, LIGH, MISC, RACE, SKIL, SNDG, SSCR and STAT. Phew!
2010-02-21 13:20:17 +01:00
|
|
|
}
|
|
|
|
#endif
|