mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +00:00
38 lines
697 B
C++
38 lines
697 B
C++
#ifndef OPENMW_ESM_ATTR_H
|
|
#define OPENMW_ESM_ATTR_H
|
|
|
|
#include <string>
|
|
|
|
namespace ESM
|
|
{
|
|
|
|
/*
|
|
* Attribute definitions
|
|
*/
|
|
|
|
struct Attribute
|
|
{
|
|
enum AttributeID
|
|
{
|
|
Strength = 0,
|
|
Intelligence = 1,
|
|
Willpower = 2,
|
|
Agility = 3,
|
|
Speed = 4,
|
|
Endurance = 5,
|
|
Personality = 6,
|
|
Luck = 7,
|
|
Length = 8
|
|
};
|
|
|
|
AttributeID mId;
|
|
std::string mName, mDescription, mIcon;
|
|
float mWerewolfValue{};
|
|
|
|
static const std::string sAttributeNames[Length];
|
|
|
|
static AttributeID stringToAttributeId(std::string_view attribute);
|
|
};
|
|
}
|
|
#endif
|