diff options
Diffstat (limited to 'src/map/skill.t.hpp')
-rw-r--r-- | src/map/skill.t.hpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/map/skill.t.hpp b/src/map/skill.t.hpp index fe10699..e286831 100644 --- a/src/map/skill.t.hpp +++ b/src/map/skill.t.hpp @@ -3,6 +3,8 @@ #include <cstdint> +#include "../common/utils.hpp" + // only ST_NONE is actually used - TODO remove enum class SkillState { @@ -1417,4 +1419,23 @@ enum class SkillID : uint16_t #define MAX_SKILL_DB SkillID::MAX_SKILL_DB }; +namespace e +{ +enum class SkillFlags : uint16_t +{ + ZERO = 0x00, + // is a pool skill + FLAG = 0x01, +#define SKILL_POOL_FLAG SkillFlags::FLAG + // is an active pool skill + ACTIVE = 0x02, +#define SKILL_POOL_ACTIVE SkillFlags::ACTIVE + // pool skill has been activated (used for clif) + ACTIVATED = 0x04, +#define SKILL_POOL_ACTIVATED SkillFlags::ACTIVATED +}; +ENUM_BITWISE_OPERATORS(SkillFlags) +} +using e::SkillFlags; + #endif // SKILL_T_HPP |