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