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

38 lines
697 B
C++
Raw Normal View History

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