1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/components/esm/attr.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
697 B
C++
Raw Normal View History

2012-09-23 18:11:08 +00:00
#ifndef OPENMW_ESM_ATTR_H
#define OPENMW_ESM_ATTR_H
#include <string>
namespace ESM
{
/*
* Attribute definitions
*/
struct Attribute
{
enum AttributeID
2022-09-22 18:26:05 +00:00
{
Strength = 0,
Intelligence = 1,
Willpower = 2,
Agility = 3,
Speed = 4,
Endurance = 5,
Personality = 6,
Luck = 7,
Length = 8
};
2012-09-17 07:37:50 +00:00
AttributeID mId;
2023-05-31 15:02:18 +00:00
std::string mName, mDescription, mIcon;
float mWerewolfValue{};
2013-08-09 12:14:58 +00:00
static const std::string sAttributeNames[Length];
static AttributeID stringToAttributeId(std::string_view attribute);
};
}
#endif