2012-09-23 22:11:08 +04:00
|
|
|
#ifndef OPENMW_ESM_ATTR_H
|
|
|
|
#define OPENMW_ESM_ATTR_H
|
2010-09-24 15:28:14 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace ESM
|
|
|
|
{
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Attribute definitions
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct Attribute
|
|
|
|
{
|
|
|
|
enum AttributeID
|
2022-09-22 21:26:05 +03:00
|
|
|
{
|
2010-09-24 15:28:14 +02:00
|
|
|
Strength = 0,
|
|
|
|
Intelligence = 1,
|
|
|
|
Willpower = 2,
|
|
|
|
Agility = 3,
|
|
|
|
Speed = 4,
|
|
|
|
Endurance = 5,
|
|
|
|
Personality = 6,
|
|
|
|
Luck = 7,
|
2019-09-30 20:27:42 +04:00
|
|
|
Length = 8
|
2010-09-24 15:28:14 +02:00
|
|
|
};
|
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
AttributeID mId;
|
|
|
|
std::string mName, mDescription;
|
2010-09-24 15:28:14 +02:00
|
|
|
|
2012-09-17 11:37:50 +04:00
|
|
|
static const AttributeID sAttributeIds[Length];
|
2013-08-09 05:14:58 -07:00
|
|
|
static const std::string sAttributeNames[Length];
|
2012-09-17 11:37:50 +04:00
|
|
|
static const std::string sGmstAttributeIds[Length];
|
|
|
|
static const std::string sGmstAttributeDescIds[Length];
|
|
|
|
static const std::string sAttributeIcons[Length];
|
2010-09-24 15:28:14 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|