AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
EnumUtils Class Reference

#include "SmartEnum.h"

Classes

class  Iterator
 

Public Member Functions

AC_API_EXPORT EnumText ToString (ColorTypes value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT ColorTypes FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (ColorTypes value)
 
AC_API_EXPORT EnumText ToString (LogLevel value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT LogLevel FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (LogLevel value)
 
AC_API_EXPORT EnumText ToString (AppenderType value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT AppenderType FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (AppenderType value)
 
AC_API_EXPORT EnumText ToString (AppenderFlags value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT AppenderFlags FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (AppenderFlags value)
 
AC_API_EXPORT EnumText ToString (CreatureAI::EvadeReason value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT CreatureAI::EvadeReason FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (CreatureAI::EvadeReason value)
 
AC_API_EXPORT EnumText ToString (ArenaTeamTypes value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT ArenaTeamTypes FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (ArenaTeamTypes value)
 
AC_API_EXPORT EnumText ToString (ChatNotify value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT ChatNotify FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (ChatNotify value)
 
AC_API_EXPORT EnumText ToString (CreatureFlagsExtra value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT CreatureFlagsExtra FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (CreatureFlagsExtra value)
 
AC_API_EXPORT EnumText ToString (InventoryResult value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT InventoryResult FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (InventoryResult value)
 
AC_API_EXPORT EnumText ToString (BuyResult value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT BuyResult FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (BuyResult value)
 
AC_API_EXPORT EnumText ToString (SellResult value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SellResult FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SellResult value)
 
AC_API_EXPORT EnumText ToString (UnitFlags value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT UnitFlags FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (UnitFlags value)
 
AC_API_EXPORT EnumText ToString (NPCFlags value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT NPCFlags FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (NPCFlags value)
 
AC_API_EXPORT EnumText ToString (QuestFailedReason value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT QuestFailedReason FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (QuestFailedReason value)
 
AC_API_EXPORT EnumText ToString (QuestShareMessages value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT QuestShareMessages FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (QuestShareMessages value)
 
AC_API_EXPORT EnumText ToString (WardenActions value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT WardenActions FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (WardenActions value)
 
AC_API_EXPORT EnumText ToString (Races value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT Races FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (Races value)
 
AC_API_EXPORT EnumText ToString (Classes value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT Classes FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (Classes value)
 
AC_API_EXPORT EnumText ToString (SpellAttr0 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr0 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr0 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr1 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr1 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr1 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr2 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr2 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr2 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr3 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr3 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr3 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr4 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr4 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr4 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr5 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr5 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr5 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr6 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr6 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr6 value)
 
AC_API_EXPORT EnumText ToString (SpellAttr7 value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellAttr7 FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellAttr7 value)
 
AC_API_EXPORT EnumText ToString (SpellCastResult value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT SpellCastResult FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (SpellCastResult value)
 
AC_API_EXPORT EnumText ToString (AuraStateType value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT AuraStateType FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (AuraStateType value)
 
AC_API_EXPORT EnumText ToString (Mechanics value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT Mechanics FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (Mechanics value)
 
AC_API_EXPORT EnumText ToString (Emote value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT Emote FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (Emote value)
 
AC_API_EXPORT EnumText ToString (ChatMsg value)
 
AC_API_EXPORT std::size_t Count ()
 
AC_API_EXPORT ChatMsg FromIndex (std::size_t index)
 
AC_API_EXPORT std::size_t ToIndex (ChatMsg value)
 

Static Public Member Functions

template<typename Enum >
static std::size_t Count ()
 
template<typename Enum >
static EnumText ToString (Enum value)
 
template<typename Enum >
static Enum FromIndex (std::size_t index)
 
template<typename Enum >
static uint32 ToIndex (Enum value)
 
template<typename Enum >
static bool IsValid (Enum value)
 
template<typename Enum >
static bool IsValid (std::underlying_type_t< Enum > value)
 
template<typename Enum >
static Iterator< Enum > Begin ()
 
template<typename Enum >
static Iterator< Enum > End ()
 
template<typename Enum >
static Acore::IteratorPair< Iterator< Enum > > Iterate ()
 
template<typename Enum >
static char const * ToConstant (Enum value)
 
template<typename Enum >
static char const * ToTitle (Enum value)
 
template<typename Enum >
static char const * ToDescription (Enum value)
 

Detailed Description

Member Function Documentation

◆ Begin()

template<typename Enum >
static Iterator< Enum > EnumUtils::Begin ( )
inlinestatic
114{ return Iterator<Enum>(0); }

◆ Count() [1/32]

AC_API_EXPORT std::size_t EnumUtils< ColorTypes >::Count ( )
54{ return 15; }

◆ Count() [2/32]

AC_API_EXPORT std::size_t EnumUtils< LogLevel >::Count ( )
47{ return 7; }

◆ Count() [3/32]

AC_API_EXPORT std::size_t EnumUtils< AppenderType >::Count ( )
98{ return 4; }

◆ Count() [4/32]

AC_API_EXPORT std::size_t EnumUtils< AppenderFlags >::Count ( )
145{ return 6; }

◆ Count() [5/32]

template<typename Enum >
static std::size_t EnumUtils::Count ( )
inlinestatic

◆ Count() [6/32]

AC_API_EXPORT std::size_t EnumUtils< CreatureAI::EvadeReason >::Count ( )
43{ return 4; }

◆ Count() [7/32]

AC_API_EXPORT std::size_t EnumUtils< ArenaTeamTypes >::Count ( )
42{ return 3; }

◆ Count() [8/32]

AC_API_EXPORT std::size_t EnumUtils< ChatNotify >::Count ( )
75{ return 36; }

◆ Count() [9/32]

AC_API_EXPORT std::size_t EnumUtils< CreatureFlagsExtra >::Count ( )
71{ return 32; }

◆ Count() [10/32]

AC_API_EXPORT std::size_t EnumUtils< InventoryResult >::Count ( )
127{ return 88; }

◆ Count() [11/32]

AC_API_EXPORT std::size_t EnumUtils< BuyResult >::Count ( )
345{ return 9; }

◆ Count() [12/32]

AC_API_EXPORT std::size_t EnumUtils< SellResult >::Count ( )
405{ return 9; }

◆ Count() [13/32]

AC_API_EXPORT std::size_t EnumUtils< UnitFlags >::Count ( )
72{ return 33; }

◆ Count() [14/32]

AC_API_EXPORT std::size_t EnumUtils< NPCFlags >::Count ( )
199{ return 28; }

◆ Count() [15/32]

AC_API_EXPORT std::size_t EnumUtils< QuestFailedReason >::Count ( )
52{ return 13; }

◆ Count() [16/32]

AC_API_EXPORT std::size_t EnumUtils< QuestShareMessages >::Count ( )
122{ return 11; }

◆ Count() [17/32]

AC_API_EXPORT std::size_t EnumUtils< WardenActions >::Count ( )
42{ return 3; }

◆ Count() [18/32]

AC_API_EXPORT std::size_t EnumUtils< Races >::Count ( )
50{ return 10; }

◆ Count() [19/32]

AC_API_EXPORT std::size_t EnumUtils< Classes >::Count ( )
113{ return 10; }

◆ Count() [20/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr0 >::Count ( )
198{ return 32; }

◆ Count() [21/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr1 >::Count ( )
327{ return 32; }

◆ Count() [22/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr2 >::Count ( )
456{ return 32; }

◆ Count() [23/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr3 >::Count ( )
585{ return 32; }

◆ Count() [24/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr4 >::Count ( )
714{ return 32; }

◆ Count() [25/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr5 >::Count ( )
843{ return 32; }

◆ Count() [26/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr6 >::Count ( )
972{ return 32; }

◆ Count() [27/32]

AC_API_EXPORT std::size_t EnumUtils< SpellAttr7 >::Count ( )
1101{ return 32; }

◆ Count() [28/32]

AC_API_EXPORT std::size_t EnumUtils< SpellCastResult >::Count ( )
1387{ return 189; }

◆ Count() [29/32]

AC_API_EXPORT std::size_t EnumUtils< AuraStateType >::Count ( )
1816{ return 18; }

◆ Count() [30/32]

AC_API_EXPORT std::size_t EnumUtils< Mechanics >::Count ( )
1917{ return 32; }

◆ Count() [31/32]

AC_API_EXPORT std::size_t EnumUtils< Emote >::Count ( )
2188{ return 174; }

◆ Count() [32/32]

AC_API_EXPORT std::size_t EnumUtils< ChatMsg >::Count ( )
2622{ return 53; }

◆ End()

template<typename Enum >
static Iterator< Enum > EnumUtils::End ( )
inlinestatic
117{ return Iterator<Enum>(); }

◆ FromIndex() [1/32]

AC_API_EXPORT ColorTypes EnumUtils< ColorTypes >::FromIndex ( std::size_t  index)
58{
59 switch (index)
60 {
61 case 0: return BLACK;
62 case 1: return RED;
63 case 2: return GREEN;
64 case 3: return BROWN;
65 case 4: return BLUE;
66 case 5: return MAGENTA;
67 case 6: return CYAN;
68 case 7: return GREY;
69 case 8: return YELLOW;
70 case 9: return LRED;
71 case 10: return LGREEN;
72 case 11: return LBLUE;
73 case 12: return LMAGENTA;
74 case 13: return LCYAN;
75 case 14: return WHITE;
76 default: throw std::out_of_range("index");
77 }
78}
@ BROWN
Definition: AppenderConsole.h:30
@ LRED
Definition: AppenderConsole.h:36
@ WHITE
Definition: AppenderConsole.h:41
@ BLUE
Definition: AppenderConsole.h:31
@ GREY
Definition: AppenderConsole.h:34
@ LMAGENTA
Definition: AppenderConsole.h:39
@ MAGENTA
Definition: AppenderConsole.h:32
@ GREEN
Definition: AppenderConsole.h:29
@ CYAN
Definition: AppenderConsole.h:33
@ LBLUE
Definition: AppenderConsole.h:38
@ LCYAN
Definition: AppenderConsole.h:40
@ YELLOW
Definition: AppenderConsole.h:35
@ LGREEN
Definition: AppenderConsole.h:37
@ BLACK
Definition: AppenderConsole.h:27
@ RED
Definition: AppenderConsole.h:28

References BLACK, BLUE, BROWN, CYAN, GREEN, GREY, LBLUE, LCYAN, LGREEN, LMAGENTA, LRED, MAGENTA, RED, WHITE, and YELLOW.

◆ FromIndex() [2/32]

AC_API_EXPORT LogLevel EnumUtils< LogLevel >::FromIndex ( std::size_t  index)
51{
52 switch (index)
53 {
54 case 0: return LOG_LEVEL_DISABLED;
55 case 1: return LOG_LEVEL_FATAL;
56 case 2: return LOG_LEVEL_ERROR;
57 case 3: return LOG_LEVEL_WARN;
58 case 4: return LOG_LEVEL_INFO;
59 case 5: return LOG_LEVEL_DEBUG;
60 case 6: return LOG_LEVEL_TRACE;
61 default: throw std::out_of_range("index");
62 }
63}
@ LOG_LEVEL_DEBUG
Definition: LogCommon.h:31
@ LOG_LEVEL_ERROR
Definition: LogCommon.h:28
@ LOG_LEVEL_FATAL
Definition: LogCommon.h:27
@ LOG_LEVEL_TRACE
Definition: LogCommon.h:32
@ LOG_LEVEL_WARN
Definition: LogCommon.h:29
@ LOG_LEVEL_DISABLED
Definition: LogCommon.h:26
@ LOG_LEVEL_INFO
Definition: LogCommon.h:30

References LOG_LEVEL_DEBUG, LOG_LEVEL_DISABLED, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_INFO, LOG_LEVEL_TRACE, and LOG_LEVEL_WARN.

◆ FromIndex() [3/32]

AC_API_EXPORT AppenderType EnumUtils< AppenderType >::FromIndex ( std::size_t  index)
102{
103 switch (index)
104 {
105 case 0: return APPENDER_NONE;
106 case 1: return APPENDER_CONSOLE;
107 case 2: return APPENDER_FILE;
108 case 3: return APPENDER_DB;
109 default: throw std::out_of_range("index");
110 }
111}
@ APPENDER_FILE
Definition: LogCommon.h:43
@ APPENDER_CONSOLE
Definition: LogCommon.h:42
@ APPENDER_DB
Definition: LogCommon.h:44
@ APPENDER_NONE
Definition: LogCommon.h:41

References APPENDER_CONSOLE, APPENDER_DB, APPENDER_FILE, and APPENDER_NONE.

◆ FromIndex() [4/32]

AC_API_EXPORT AppenderFlags EnumUtils< AppenderFlags >::FromIndex ( std::size_t  index)
149{
150 switch (index)
151 {
152 case 0: return APPENDER_FLAGS_NONE;
153 case 1: return APPENDER_FLAGS_PREFIX_TIMESTAMP;
154 case 2: return APPENDER_FLAGS_PREFIX_LOGLEVEL;
156 case 4: return APPENDER_FLAGS_USE_TIMESTAMP;
157 case 5: return APPENDER_FLAGS_MAKE_FILE_BACKUP;
158 default: throw std::out_of_range("index");
159 }
160}
@ APPENDER_FLAGS_NONE
Definition: LogCommon.h:52
@ APPENDER_FLAGS_MAKE_FILE_BACKUP
Definition: LogCommon.h:57
@ APPENDER_FLAGS_USE_TIMESTAMP
Definition: LogCommon.h:56
@ APPENDER_FLAGS_PREFIX_TIMESTAMP
Definition: LogCommon.h:53
@ APPENDER_FLAGS_PREFIX_LOGFILTERTYPE
Definition: LogCommon.h:55
@ APPENDER_FLAGS_PREFIX_LOGLEVEL
Definition: LogCommon.h:54

References APPENDER_FLAGS_MAKE_FILE_BACKUP, APPENDER_FLAGS_NONE, APPENDER_FLAGS_PREFIX_LOGFILTERTYPE, APPENDER_FLAGS_PREFIX_LOGLEVEL, APPENDER_FLAGS_PREFIX_TIMESTAMP, and APPENDER_FLAGS_USE_TIMESTAMP.

◆ FromIndex() [5/32]

template<typename Enum >
static Enum EnumUtils::FromIndex ( std::size_t  index)
inlinestatic

◆ FromIndex() [6/32]

47{
48 switch (index)
49 {
54 default: throw std::out_of_range("index");
55 }
56}
@ EVADE_REASON_BOUNDARY
Definition: CreatureAI.h:90
@ EVADE_REASON_NO_HOSTILES
Definition: CreatureAI.h:89
@ EVADE_REASON_SEQUENCE_BREAK
Definition: CreatureAI.h:91
@ EVADE_REASON_NO_PATH
Definition: CreatureAI.h:92

References CreatureAI::EVADE_REASON_BOUNDARY, CreatureAI::EVADE_REASON_NO_HOSTILES, CreatureAI::EVADE_REASON_NO_PATH, and CreatureAI::EVADE_REASON_SEQUENCE_BREAK.

◆ FromIndex() [7/32]

AC_API_EXPORT ArenaTeamTypes EnumUtils< ArenaTeamTypes >::FromIndex ( std::size_t  index)
46{
47 switch (index)
48 {
49 case 0: return ARENA_TEAM_2v2;
50 case 1: return ARENA_TEAM_3v3;
51 case 2: return ARENA_TEAM_5v5;
52 default: throw std::out_of_range("index");
53 }
54}
@ ARENA_TEAM_5v5
Definition: ArenaTeam.h:97
@ ARENA_TEAM_2v2
Definition: ArenaTeam.h:95
@ ARENA_TEAM_3v3
Definition: ArenaTeam.h:96

References ARENA_TEAM_2v2, ARENA_TEAM_3v3, and ARENA_TEAM_5v5.

◆ FromIndex() [8/32]

AC_API_EXPORT ChatNotify EnumUtils< ChatNotify >::FromIndex ( std::size_t  index)
79{
80 switch (index)
81 {
82 case 0: return CHAT_JOINED_NOTICE;
83 case 1: return CHAT_LEFT_NOTICE;
84 case 2: return CHAT_YOU_JOINED_NOTICE;
85 case 3: return CHAT_YOU_LEFT_NOTICE;
86 case 4: return CHAT_WRONG_PASSWORD_NOTICE;
87 case 5: return CHAT_NOT_MEMBER_NOTICE;
88 case 6: return CHAT_NOT_MODERATOR_NOTICE;
89 case 7: return CHAT_PASSWORD_CHANGED_NOTICE;
90 case 8: return CHAT_OWNER_CHANGED_NOTICE;
91 case 9: return CHAT_PLAYER_NOT_FOUND_NOTICE;
92 case 10: return CHAT_NOT_OWNER_NOTICE;
93 case 11: return CHAT_CHANNEL_OWNER_NOTICE;
94 case 12: return CHAT_MODE_CHANGE_NOTICE;
95 case 13: return CHAT_ANNOUNCEMENTS_ON_NOTICE;
96 case 14: return CHAT_ANNOUNCEMENTS_OFF_NOTICE;
97 case 15: return CHAT_MODERATION_ON_NOTICE;
98 case 16: return CHAT_MODERATION_OFF_NOTICE;
99 case 17: return CHAT_MUTED_NOTICE;
100 case 18: return CHAT_PLAYER_KICKED_NOTICE;
101 case 19: return CHAT_BANNED_NOTICE;
102 case 20: return CHAT_PLAYER_BANNED_NOTICE;
103 case 21: return CHAT_PLAYER_UNBANNED_NOTICE;
104 case 22: return CHAT_PLAYER_NOT_BANNED_NOTICE;
105 case 23: return CHAT_PLAYER_ALREADY_MEMBER_NOTICE;
106 case 24: return CHAT_INVITE_NOTICE;
107 case 25: return CHAT_INVITE_WRONG_FACTION_NOTICE;
108 case 26: return CHAT_WRONG_FACTION_NOTICE;
109 case 27: return CHAT_INVALID_NAME_NOTICE;
110 case 28: return CHAT_NOT_MODERATED_NOTICE;
111 case 29: return CHAT_PLAYER_INVITED_NOTICE;
112 case 30: return CHAT_PLAYER_INVITE_BANNED_NOTICE;
113 case 31: return CHAT_THROTTLED_NOTICE;
114 case 32: return CHAT_NOT_IN_AREA_NOTICE;
115 case 33: return CHAT_NOT_IN_LFG_NOTICE;
116 case 34: return CHAT_VOICE_ON_NOTICE;
117 case 35: return CHAT_VOICE_OFF_NOTICE;
118 default: throw std::out_of_range("index");
119 }
120}
@ CHAT_YOU_JOINED_NOTICE
Definition: Channel.h:35
@ CHAT_MODERATION_OFF_NOTICE
Definition: Channel.h:50
@ CHAT_WRONG_FACTION_NOTICE
Definition: Channel.h:60
@ CHAT_NOT_MODERATOR_NOTICE
Definition: Channel.h:40
@ CHAT_PLAYER_UNBANNED_NOTICE
Definition: Channel.h:55
@ CHAT_PLAYER_NOT_FOUND_NOTICE
Definition: Channel.h:43
@ CHAT_MUTED_NOTICE
Definition: Channel.h:51
@ CHAT_PLAYER_NOT_BANNED_NOTICE
Definition: Channel.h:56
@ CHAT_PLAYER_INVITED_NOTICE
Definition: Channel.h:63
@ CHAT_PLAYER_KICKED_NOTICE
Definition: Channel.h:52
@ CHAT_VOICE_OFF_NOTICE
Definition: Channel.h:69
@ CHAT_MODE_CHANGE_NOTICE
Definition: Channel.h:46
@ CHAT_NOT_MEMBER_NOTICE
Definition: Channel.h:39
@ CHAT_ANNOUNCEMENTS_ON_NOTICE
Definition: Channel.h:47
@ CHAT_JOINED_NOTICE
Definition: Channel.h:32
@ CHAT_LEFT_NOTICE
Definition: Channel.h:33
@ CHAT_INVITE_WRONG_FACTION_NOTICE
Definition: Channel.h:59
@ CHAT_BANNED_NOTICE
Definition: Channel.h:53
@ CHAT_PLAYER_BANNED_NOTICE
Definition: Channel.h:54
@ CHAT_PLAYER_ALREADY_MEMBER_NOTICE
Definition: Channel.h:57
@ CHAT_OWNER_CHANGED_NOTICE
Definition: Channel.h:42
@ CHAT_ANNOUNCEMENTS_OFF_NOTICE
Definition: Channel.h:48
@ CHAT_VOICE_ON_NOTICE
Definition: Channel.h:68
@ CHAT_NOT_IN_LFG_NOTICE
Definition: Channel.h:67
@ CHAT_NOT_IN_AREA_NOTICE
Definition: Channel.h:66
@ CHAT_NOT_MODERATED_NOTICE
Definition: Channel.h:62
@ CHAT_YOU_LEFT_NOTICE
Definition: Channel.h:37
@ CHAT_CHANNEL_OWNER_NOTICE
Definition: Channel.h:45
@ CHAT_WRONG_PASSWORD_NOTICE
Definition: Channel.h:38
@ CHAT_THROTTLED_NOTICE
Definition: Channel.h:65
@ CHAT_PLAYER_INVITE_BANNED_NOTICE
Definition: Channel.h:64
@ CHAT_INVITE_NOTICE
Definition: Channel.h:58
@ CHAT_NOT_OWNER_NOTICE
Definition: Channel.h:44
@ CHAT_PASSWORD_CHANGED_NOTICE
Definition: Channel.h:41
@ CHAT_INVALID_NAME_NOTICE
Definition: Channel.h:61
@ CHAT_MODERATION_ON_NOTICE
Definition: Channel.h:49

References CHAT_ANNOUNCEMENTS_OFF_NOTICE, CHAT_ANNOUNCEMENTS_ON_NOTICE, CHAT_BANNED_NOTICE, CHAT_CHANNEL_OWNER_NOTICE, CHAT_INVALID_NAME_NOTICE, CHAT_INVITE_NOTICE, CHAT_INVITE_WRONG_FACTION_NOTICE, CHAT_JOINED_NOTICE, CHAT_LEFT_NOTICE, CHAT_MODE_CHANGE_NOTICE, CHAT_MODERATION_OFF_NOTICE, CHAT_MODERATION_ON_NOTICE, CHAT_MUTED_NOTICE, CHAT_NOT_IN_AREA_NOTICE, CHAT_NOT_IN_LFG_NOTICE, CHAT_NOT_MEMBER_NOTICE, CHAT_NOT_MODERATED_NOTICE, CHAT_NOT_MODERATOR_NOTICE, CHAT_NOT_OWNER_NOTICE, CHAT_OWNER_CHANGED_NOTICE, CHAT_PASSWORD_CHANGED_NOTICE, CHAT_PLAYER_ALREADY_MEMBER_NOTICE, CHAT_PLAYER_BANNED_NOTICE, CHAT_PLAYER_INVITE_BANNED_NOTICE, CHAT_PLAYER_INVITED_NOTICE, CHAT_PLAYER_KICKED_NOTICE, CHAT_PLAYER_NOT_BANNED_NOTICE, CHAT_PLAYER_NOT_FOUND_NOTICE, CHAT_PLAYER_UNBANNED_NOTICE, CHAT_THROTTLED_NOTICE, CHAT_VOICE_OFF_NOTICE, CHAT_VOICE_ON_NOTICE, CHAT_WRONG_FACTION_NOTICE, CHAT_WRONG_PASSWORD_NOTICE, CHAT_YOU_JOINED_NOTICE, and CHAT_YOU_LEFT_NOTICE.

◆ FromIndex() [9/32]

AC_API_EXPORT CreatureFlagsExtra EnumUtils< CreatureFlagsExtra >::FromIndex ( std::size_t  index)
75{
76 switch (index)
77 {
79 case 1: return CREATURE_FLAG_EXTRA_CIVILIAN;
80 case 2: return CREATURE_FLAG_EXTRA_NO_PARRY;
82 case 4: return CREATURE_FLAG_EXTRA_NO_BLOCK;
84 case 6: return CREATURE_FLAG_EXTRA_NO_XP;
85 case 7: return CREATURE_FLAG_EXTRA_TRIGGER;
86 case 8: return CREATURE_FLAG_EXTRA_NO_TAUNT;
92 case 14: return CREATURE_FLAG_EXTRA_WORLDEVENT;
93 case 15: return CREATURE_FLAG_EXTRA_GUARD;
95 case 17: return CREATURE_FLAG_EXTRA_NO_CRIT;
100 case 22: return CREATURE_FLAG_EXTRA_AVOID_AOE;
101 case 23: return CREATURE_FLAG_EXTRA_NO_DODGE;
102 case 24: return CREATURE_FLAG_EXTRA_MODULE;
106 case 28: return CREATURE_FLAG_EXTRA_DUNGEON_BOSS;
109 case 31: return CREATURE_FLAG_EXTRA_HARD_RESET;
110 default: throw std::out_of_range("index");
111 }
112}
@ CREATURE_FLAG_EXTRA_IGNORE_COMBAT
Definition: CreatureData.h:58
@ CREATURE_FLAG_EXTRA_NO_BLOCK
Definition: CreatureData.h:49
@ CREATURE_FLAG_EXTRA_NO_CRUSHING_BLOWS
Definition: CreatureData.h:50
@ CREATURE_FLAG_EXTRA_NO_CRIT
Definition: CreatureData.h:62
@ CREATURE_FLAG_EXTRA_DUNGEON_BOSS
Definition: CreatureData.h:73
@ CREATURE_FLAG_EXTRA_IGNORE_ALL_ASSISTANCE_CALLS
Definition: CreatureData.h:71
@ CREATURE_FLAG_EXTRA_TRIGGER
Definition: CreatureData.h:52
@ CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING
Definition: CreatureData.h:74
@ CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN
Definition: CreatureData.h:48
@ CREATURE_FLAG_EXTRA_NO_XP
Definition: CreatureData.h:51
@ CREATURE_FLAG_EXTRA_HARD_RESET
Definition: CreatureData.h:76
@ CREATURE_FLAG_EXTRA_INSTANCE_BIND
Definition: CreatureData.h:45
@ CREATURE_FLAG_EXTRA_OBEYS_TAUNT_DIMINISHING_RETURNS
Definition: CreatureData.h:64
@ CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE
Definition: CreatureData.h:54
@ CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK
Definition: CreatureData.h:75
@ CREATURE_FLAG_EXTRA_DONT_CALL_ASSISTANCE
Definition: CreatureData.h:70
@ CREATURE_FLAG_EXTRA_NO_PARRY
Definition: CreatureData.h:47
@ CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH
Definition: CreatureData.h:61
@ CREATURE_FLAG_EXTRA_NO_TAUNT
Definition: CreatureData.h:53
@ CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ
Definition: CreatureData.h:66
@ CREATURE_FLAG_EXTRA_GHOST_VISIBILITY
Definition: CreatureData.h:55
@ CREATURE_FLAG_EXTRA_NO_SELL_VENDOR
Definition: CreatureData.h:57
@ CREATURE_FLAG_EXTRA_NO_DODGE
Definition: CreatureData.h:68
@ CREATURE_FLAG_EXTRA_NO_SKILL_GAINS
Definition: CreatureData.h:63
@ CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK
Definition: CreatureData.h:56
@ CREATURE_FLAG_EXTRA_AVOID_AOE
Definition: CreatureData.h:67
@ CREATURE_FLAG_EXTRA_CIVILIAN
Definition: CreatureData.h:46
@ CREATURE_FLAG_EXTRA_MODULE
Definition: CreatureData.h:69
@ CREATURE_FLAG_EXTRA_GUARD
Definition: CreatureData.h:60
@ CREATURE_FLAG_EXTRA_ALL_DIMINISH
Definition: CreatureData.h:65
@ CREATURE_FLAG_EXTRA_WORLDEVENT
Definition: CreatureData.h:59
@ CREATURE_FLAG_EXTRA_DONT_OVERRIDE_ENTRY_SAI
Definition: CreatureData.h:72

References CREATURE_FLAG_EXTRA_ALL_DIMINISH, CREATURE_FLAG_EXTRA_AVOID_AOE, CREATURE_FLAG_EXTRA_CIVILIAN, CREATURE_FLAG_EXTRA_DONT_CALL_ASSISTANCE, CREATURE_FLAG_EXTRA_DONT_OVERRIDE_ENTRY_SAI, CREATURE_FLAG_EXTRA_DUNGEON_BOSS, CREATURE_FLAG_EXTRA_GHOST_VISIBILITY, CREATURE_FLAG_EXTRA_GUARD, CREATURE_FLAG_EXTRA_HARD_RESET, CREATURE_FLAG_EXTRA_IGNORE_ALL_ASSISTANCE_CALLS, CREATURE_FLAG_EXTRA_IGNORE_COMBAT, CREATURE_FLAG_EXTRA_IGNORE_FEIGN_DEATH, CREATURE_FLAG_EXTRA_IGNORE_PATHFINDING, CREATURE_FLAG_EXTRA_IMMUNITY_KNOCKBACK, CREATURE_FLAG_EXTRA_INSTANCE_BIND, CREATURE_FLAG_EXTRA_MODULE, CREATURE_FLAG_EXTRA_NO_BLOCK, CREATURE_FLAG_EXTRA_NO_CRIT, CREATURE_FLAG_EXTRA_NO_CRUSHING_BLOWS, CREATURE_FLAG_EXTRA_NO_DODGE, CREATURE_FLAG_EXTRA_NO_MOVE_FLAGS_UPDATE, CREATURE_FLAG_EXTRA_NO_PARRY, CREATURE_FLAG_EXTRA_NO_PARRY_HASTEN, CREATURE_FLAG_EXTRA_NO_PLAYER_DAMAGE_REQ, CREATURE_FLAG_EXTRA_NO_SELL_VENDOR, CREATURE_FLAG_EXTRA_NO_SKILL_GAINS, CREATURE_FLAG_EXTRA_NO_TAUNT, CREATURE_FLAG_EXTRA_NO_XP, CREATURE_FLAG_EXTRA_OBEYS_TAUNT_DIMINISHING_RETURNS, CREATURE_FLAG_EXTRA_TRIGGER, CREATURE_FLAG_EXTRA_USE_OFFHAND_ATTACK, and CREATURE_FLAG_EXTRA_WORLDEVENT.

◆ FromIndex() [10/32]

AC_API_EXPORT InventoryResult EnumUtils< InventoryResult >::FromIndex ( std::size_t  index)
131{
132 switch (index)
133 {
134 case 0: return EQUIP_ERR_OK;
135 case 1: return EQUIP_ERR_CANT_EQUIP_LEVEL_I;
136 case 2: return EQUIP_ERR_CANT_EQUIP_SKILL;
138 case 4: return EQUIP_ERR_BAG_FULL;
140 case 6: return EQUIP_ERR_CANT_TRADE_EQUIP_BAGS;
141 case 7: return EQUIP_ERR_ONLY_AMMO_CAN_GO_HERE;
148 case 14: return EQUIP_ERR_CANT_DUAL_WIELD;
149 case 15: return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
151 case 17: return EQUIP_ERR_CANT_CARRY_MORE_OF_THIS;
153 case 19: return EQUIP_ERR_ITEM_CANT_STACK;
154 case 20: return EQUIP_ERR_ITEM_CANT_BE_EQUIPPED;
155 case 21: return EQUIP_ERR_ITEMS_CANT_BE_SWAPPED;
156 case 22: return EQUIP_ERR_SLOT_IS_EMPTY;
157 case 23: return EQUIP_ERR_ITEM_NOT_FOUND;
158 case 24: return EQUIP_ERR_CANT_DROP_SOULBOUND;
159 case 25: return EQUIP_ERR_OUT_OF_RANGE;
161 case 27: return EQUIP_ERR_COULDNT_SPLIT_ITEMS;
162 case 28: return EQUIP_ERR_MISSING_REAGENT;
163 case 29: return EQUIP_ERR_NOT_ENOUGH_MONEY;
164 case 30: return EQUIP_ERR_NOT_A_BAG;
166 case 32: return EQUIP_ERR_DONT_OWN_THAT_ITEM;
167 case 33: return EQUIP_ERR_CAN_EQUIP_ONLY1_QUIVER;
169 case 35: return EQUIP_ERR_TOO_FAR_AWAY_FROM_BANK;
170 case 36: return EQUIP_ERR_ITEM_LOCKED;
171 case 37: return EQUIP_ERR_YOU_ARE_STUNNED;
172 case 38: return EQUIP_ERR_YOU_ARE_DEAD;
173 case 39: return EQUIP_ERR_CANT_DO_RIGHT_NOW;
174 case 40: return EQUIP_ERR_INT_BAG_ERROR;
175 case 41: return EQUIP_ERR_CAN_EQUIP_ONLY1_BOLT;
179 case 45: return EQUIP_ERR_WRAPPED_CANT_BE_WRAPPED;
180 case 46: return EQUIP_ERR_BOUND_CANT_BE_WRAPPED;
181 case 47: return EQUIP_ERR_UNIQUE_CANT_BE_WRAPPED;
182 case 48: return EQUIP_ERR_BAGS_CANT_BE_WRAPPED;
183 case 49: return EQUIP_ERR_ALREADY_LOOTED;
184 case 50: return EQUIP_ERR_INVENTORY_FULL;
185 case 51: return EQUIP_ERR_BANK_FULL;
187 case 53: return EQUIP_ERR_BAG_FULL3;
188 case 54: return EQUIP_ERR_ITEM_NOT_FOUND2;
189 case 55: return EQUIP_ERR_ITEM_CANT_STACK2;
190 case 56: return EQUIP_ERR_BAG_FULL4;
191 case 57: return EQUIP_ERR_ITEM_SOLD_OUT;
192 case 58: return EQUIP_ERR_OBJECT_IS_BUSY;
193 case 59: return EQUIP_ERR_NONE;
194 case 60: return EQUIP_ERR_NOT_IN_COMBAT;
195 case 61: return EQUIP_ERR_NOT_WHILE_DISARMED;
196 case 62: return EQUIP_ERR_BAG_FULL6;
197 case 63: return EQUIP_ERR_CANT_EQUIP_RANK;
198 case 64: return EQUIP_ERR_CANT_EQUIP_REPUTATION;
199 case 65: return EQUIP_ERR_TOO_MANY_SPECIAL_BAGS;
200 case 66: return EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW;
201 case 67: return EQUIP_ERR_ITEM_UNIQUE_EQUIPABLE;
202 case 68: return EQUIP_ERR_VENDOR_MISSING_TURNINS;
203 case 69: return EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS;
204 case 70: return EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS;
205 case 71: return EQUIP_ERR_ITEM_MAX_COUNT_SOCKETED;
206 case 72: return EQUIP_ERR_MAIL_BOUND_ITEM;
210 case 76: return EQUIP_ERR_TOO_MUCH_GOLD;
211 case 77: return EQUIP_ERR_NOT_DURING_ARENA_MATCH;
212 case 78: return EQUIP_ERR_CANNOT_TRADE_THAT;
219 case 85: return EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW;
220 case 86: return EQUIP_ERR_CANT_EQUIP_NEED_TALENT;
222 default: throw std::out_of_range("index");
223 }
224}
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED
Definition: Item.h:130
@ EQUIP_ERR_BAG_FULL
Definition: Item.h:51
@ EQUIP_ERR_CANT_EQUIP_RANK
Definition: Item.h:110
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED
Definition: Item.h:135
@ EQUIP_ERR_TOO_MUCH_GOLD
Definition: Item.h:123
@ EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH
Definition: Item.h:89
@ EQUIP_ERR_NO_SPLIT_WHILE_PROSPECTING
Definition: Item.h:120
@ EQUIP_ERR_MISSING_REAGENT
Definition: Item.h:75
@ EQUIP_ERR_NOT_A_BAG
Definition: Item.h:77
@ EQUIP_ERR_BAGS_CANT_BE_WRAPPED
Definition: Item.h:95
@ EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM2
Definition: Item.h:58
@ EQUIP_ERR_CANT_TRADE_EQUIP_BAGS
Definition: Item.h:53
@ EQUIP_ERR_BAG_FULL4
Definition: Item.h:103
@ EQUIP_ERR_MAIL_BOUND_ITEM
Definition: Item.h:119
@ EQUIP_ERR_CANNOT_TRADE_THAT
Definition: Item.h:125
@ EQUIP_ERR_ALREADY_LOOTED
Definition: Item.h:96
@ EQUIP_ERR_STACKABLE_CANT_BE_WRAPPED
Definition: Item.h:90
@ EQUIP_ERR_CANT_DUAL_WIELD
Definition: Item.h:61
@ EQUIP_ERR_ITEM_UNIQUE_EQUIPABLE
Definition: Item.h:114
@ EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED
Definition: Item.h:121
@ EQUIP_ERR_DONT_OWN_THAT_ITEM
Definition: Item.h:79
@ EQUIP_ERR_ITEM_CANT_BE_EQUIPPED
Definition: Item.h:67
@ EQUIP_ERR_MUST_PURCHASE_THAT_BAG_SLOT
Definition: Item.h:81
@ EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS
Definition: Item.h:78
@ EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS
Definition: Item.h:116
@ EQUIP_ERR_UNIQUE_CANT_BE_WRAPPED
Definition: Item.h:94
@ EQUIP_ERR_CAN_EQUIP_ONLY1_BOLT
Definition: Item.h:88
@ EQUIP_ERR_ITEM_MAX_COUNT_SOCKETED
Definition: Item.h:118
@ EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE
Definition: Item.h:56
@ EQUIP_ERR_NOT_DURING_ARENA_MATCH
Definition: Item.h:124
@ EQUIP_ERR_OUT_OF_RANGE
Definition: Item.h:72
@ EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED
Definition: Item.h:131
@ EQUIP_ERR_ITEM_CANT_STACK2
Definition: Item.h:102
@ EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG
Definition: Item.h:52
@ EQUIP_ERR_ITEM_SOLD_OUT
Definition: Item.h:104
@ EQUIP_ERR_BANK_FULL
Definition: Item.h:98
@ EQUIP_ERR_NOT_IN_COMBAT
Definition: Item.h:107
@ EQUIP_ERR_COULDNT_SPLIT_ITEMS
Definition: Item.h:74
@ EQUIP_ERR_ITEM_LOCKED
Definition: Item.h:83
@ EQUIP_ERR_OBJECT_IS_BUSY
Definition: Item.h:105
@ EQUIP_ERR_CANT_EQUIP_LEVEL_I
Definition: Item.h:48
@ EQUIP_ERR_WRAPPED_CANT_BE_WRAPPED
Definition: Item.h:92
@ EQUIP_ERR_CANT_EQUIP_WITH_TWOHANDED
Definition: Item.h:60
@ EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM
Definition: Item.h:127
@ EQUIP_ERR_CANT_EQUIP_NEED_TALENT
Definition: Item.h:134
@ EQUIP_ERR_CANT_DROP_SOULBOUND
Definition: Item.h:71
@ EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE2
Definition: Item.h:59
@ EQUIP_ERR_NOT_WHILE_DISARMED
Definition: Item.h:108
@ EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW
Definition: Item.h:133
@ EQUIP_ERR_YOU_ARE_DEAD
Definition: Item.h:85
@ EQUIP_ERR_BAG_FULL3
Definition: Item.h:100
@ EQUIP_ERR_ITEM_NOT_FOUND
Definition: Item.h:70
@ EQUIP_ERR_CANT_DO_RIGHT_NOW
Definition: Item.h:86
@ EQUIP_ERR_CANT_EQUIP_REPUTATION
Definition: Item.h:111
@ EQUIP_ERR_OK
Definition: Item.h:47
@ EQUIP_ERR_ONLY_AMMO_CAN_GO_HERE
Definition: Item.h:54
@ EQUIP_ERR_CAN_EQUIP_ONLY1_QUIVER
Definition: Item.h:80
@ EQUIP_ERR_TOO_FAR_AWAY_FROM_BANK
Definition: Item.h:82
@ EQUIP_ERR_YOU_ARE_STUNNED
Definition: Item.h:84
@ EQUIP_ERR_CANT_EQUIP_SKILL
Definition: Item.h:49
@ EQUIP_ERR_ITEM_IS_CURRENTLY_SOLD_OUT
Definition: Item.h:99
@ EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT
Definition: Item.h:50
@ EQUIP_ERR_NOT_ENOUGH_MONEY
Definition: Item.h:76
@ EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED
Definition: Item.h:122
@ EQUIP_ERR_TRIED_TO_SPLIT_MORE_THAN_COUNT
Definition: Item.h:73
@ EQUIP_ERR_NO_REQUIRED_PROFICIENCY
Definition: Item.h:55
@ EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG
Definition: Item.h:62
@ EQUIP_ERR_VENDOR_MISSING_TURNINS
Definition: Item.h:115
@ EQUIP_ERR_ITEM_CANT_STACK
Definition: Item.h:66
@ EQUIP_ERR_CANT_CARRY_MORE_OF_THIS
Definition: Item.h:64
@ EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG2
Definition: Item.h:63
@ EQUIP_ERR_BOUND_CANT_BE_WRAPPED
Definition: Item.h:93
@ EQUIP_ERR_ITEM_NOT_FOUND2
Definition: Item.h:101
@ EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW
Definition: Item.h:113
@ EQUIP_ERR_ITEMS_CANT_BE_SWAPPED
Definition: Item.h:68
@ EQUIP_ERR_BAG_FULL6
Definition: Item.h:109
@ EQUIP_ERR_NONE
Definition: Item.h:106
@ EQUIP_ERR_ARTEFACTS_ONLY_FOR_OWN_CHARACTERS
Definition: Item.h:128
@ EQUIP_ERR_TOO_MANY_SPECIAL_BAGS
Definition: Item.h:112
@ EQUIP_ERR_INVENTORY_FULL
Definition: Item.h:97
@ EQUIP_ERR_EQUIPPED_CANT_BE_WRAPPED
Definition: Item.h:91
@ EQUIP_ERR_SCALING_STAT_ITEM_LEVEL_EXCEEDED
Definition: Item.h:132
@ EQUIP_ERR_PERSONAL_ARENA_RATING_TOO_LOW
Definition: Item.h:126
@ EQUIP_ERR_SLOT_IS_EMPTY
Definition: Item.h:69
@ EQUIP_ERR_INT_BAG_ERROR
Definition: Item.h:87
@ EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM
Definition: Item.h:57
@ EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE3
Definition: Item.h:65
@ EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS
Definition: Item.h:117

References EQUIP_ERR_ALREADY_LOOTED, EQUIP_ERR_ARTEFACTS_ONLY_FOR_OWN_CHARACTERS, EQUIP_ERR_BAG_FULL, EQUIP_ERR_BAG_FULL3, EQUIP_ERR_BAG_FULL4, EQUIP_ERR_BAG_FULL6, EQUIP_ERR_BAGS_CANT_BE_WRAPPED, EQUIP_ERR_BANK_FULL, EQUIP_ERR_BOUND_CANT_BE_WRAPPED, EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH, EQUIP_ERR_CAN_EQUIP_ONLY1_BOLT, EQUIP_ERR_CAN_EQUIP_ONLY1_QUIVER, EQUIP_ERR_CAN_ONLY_DO_WITH_EMPTY_BAGS, EQUIP_ERR_CANNOT_TRADE_THAT, EQUIP_ERR_CANT_CARRY_MORE_OF_THIS, EQUIP_ERR_CANT_DO_RIGHT_NOW, EQUIP_ERR_CANT_DROP_SOULBOUND, EQUIP_ERR_CANT_DUAL_WIELD, EQUIP_ERR_CANT_EQUIP_LEVEL_I, EQUIP_ERR_CANT_EQUIP_NEED_TALENT, EQUIP_ERR_CANT_EQUIP_RANK, EQUIP_ERR_CANT_EQUIP_REPUTATION, EQUIP_ERR_CANT_EQUIP_SKILL, EQUIP_ERR_CANT_EQUIP_WITH_TWOHANDED, EQUIP_ERR_CANT_TRADE_EQUIP_BAGS, EQUIP_ERR_COULDNT_SPLIT_ITEMS, EQUIP_ERR_DONT_OWN_THAT_ITEM, EQUIP_ERR_EQUIPPED_CANT_BE_WRAPPED, EQUIP_ERR_EVENT_AUTOEQUIP_BIND_CONFIRM, EQUIP_ERR_INT_BAG_ERROR, EQUIP_ERR_INVENTORY_FULL, EQUIP_ERR_ITEM_CANT_BE_EQUIPPED, EQUIP_ERR_ITEM_CANT_STACK, EQUIP_ERR_ITEM_CANT_STACK2, EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG, EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG2, EQUIP_ERR_ITEM_DOESNT_GO_TO_SLOT, EQUIP_ERR_ITEM_IS_CURRENTLY_SOLD_OUT, EQUIP_ERR_ITEM_LOCKED, EQUIP_ERR_ITEM_MAX_COUNT_EQUIPPED_SOCKETED, EQUIP_ERR_ITEM_MAX_COUNT_SOCKETED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_COUNT_EXCEEDED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_EQUIPPED_EXCEEDED, EQUIP_ERR_ITEM_MAX_LIMIT_CATEGORY_SOCKETED_EXCEEDED, EQUIP_ERR_ITEM_NOT_FOUND, EQUIP_ERR_ITEM_NOT_FOUND2, EQUIP_ERR_ITEM_SOLD_OUT, EQUIP_ERR_ITEM_UNIQUE_EQUIPABLE, EQUIP_ERR_ITEM_UNIQUE_EQUIPPABLE_SOCKETED, EQUIP_ERR_ITEMS_CANT_BE_SWAPPED, EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW, EQUIP_ERR_MAIL_BOUND_ITEM, EQUIP_ERR_MISSING_REAGENT, EQUIP_ERR_MUST_PURCHASE_THAT_BAG_SLOT, EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE, EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE2, EQUIP_ERR_NO_EQUIPMENT_SLOT_AVAILABLE3, EQUIP_ERR_NO_REQUIRED_PROFICIENCY, EQUIP_ERR_NO_SPLIT_WHILE_PROSPECTING, EQUIP_ERR_NONE, EQUIP_ERR_NONEMPTY_BAG_OVER_OTHER_BAG, EQUIP_ERR_NOT_A_BAG, EQUIP_ERR_NOT_DURING_ARENA_MATCH, EQUIP_ERR_NOT_ENOUGH_ARENA_POINTS, EQUIP_ERR_NOT_ENOUGH_HONOR_POINTS, EQUIP_ERR_NOT_ENOUGH_MONEY, EQUIP_ERR_NOT_IN_COMBAT, EQUIP_ERR_NOT_WHILE_DISARMED, EQUIP_ERR_OBJECT_IS_BUSY, EQUIP_ERR_OK, EQUIP_ERR_ONLY_AMMO_CAN_GO_HERE, EQUIP_ERR_OUT_OF_RANGE, EQUIP_ERR_PERSONAL_ARENA_RATING_TOO_LOW, EQUIP_ERR_PURCHASE_LEVEL_TOO_LOW, EQUIP_ERR_SCALING_STAT_ITEM_LEVEL_EXCEEDED, EQUIP_ERR_SLOT_IS_EMPTY, EQUIP_ERR_STACKABLE_CANT_BE_WRAPPED, EQUIP_ERR_TOO_FAR_AWAY_FROM_BANK, EQUIP_ERR_TOO_MANY_SPECIAL_BAGS, EQUIP_ERR_TOO_MUCH_GOLD, EQUIP_ERR_TRIED_TO_SPLIT_MORE_THAN_COUNT, EQUIP_ERR_UNIQUE_CANT_BE_WRAPPED, EQUIP_ERR_VENDOR_MISSING_TURNINS, EQUIP_ERR_WRAPPED_CANT_BE_WRAPPED, EQUIP_ERR_YOU_ARE_DEAD, EQUIP_ERR_YOU_ARE_STUNNED, EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM, and EQUIP_ERR_YOU_CAN_NEVER_USE_THAT_ITEM2.

◆ FromIndex() [11/32]

AC_API_EXPORT BuyResult EnumUtils< BuyResult >::FromIndex ( std::size_t  index)
349{
350 switch (index)
351 {
352 case 0: return BUY_ERR_CANT_FIND_ITEM;
353 case 1: return BUY_ERR_ITEM_ALREADY_SOLD;
354 case 2: return BUY_ERR_NOT_ENOUGHT_MONEY;
355 case 3: return BUY_ERR_SELLER_DONT_LIKE_YOU;
356 case 4: return BUY_ERR_DISTANCE_TOO_FAR;
357 case 5: return BUY_ERR_ITEM_SOLD_OUT;
358 case 6: return BUY_ERR_CANT_CARRY_MORE;
359 case 7: return BUY_ERR_RANK_REQUIRE;
360 case 8: return BUY_ERR_REPUTATION_REQUIRE;
361 default: throw std::out_of_range("index");
362 }
363}
@ BUY_ERR_RANK_REQUIRE
Definition: Item.h:148
@ BUY_ERR_SELLER_DONT_LIKE_YOU
Definition: Item.h:144
@ BUY_ERR_CANT_FIND_ITEM
Definition: Item.h:141
@ BUY_ERR_DISTANCE_TOO_FAR
Definition: Item.h:145
@ BUY_ERR_NOT_ENOUGHT_MONEY
Definition: Item.h:143
@ BUY_ERR_ITEM_SOLD_OUT
Definition: Item.h:146
@ BUY_ERR_REPUTATION_REQUIRE
Definition: Item.h:149
@ BUY_ERR_ITEM_ALREADY_SOLD
Definition: Item.h:142
@ BUY_ERR_CANT_CARRY_MORE
Definition: Item.h:147

References BUY_ERR_CANT_CARRY_MORE, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_ITEM_SOLD_OUT, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_RANK_REQUIRE, BUY_ERR_REPUTATION_REQUIRE, and BUY_ERR_SELLER_DONT_LIKE_YOU.

◆ FromIndex() [12/32]

AC_API_EXPORT SellResult EnumUtils< SellResult >::FromIndex ( std::size_t  index)
409{
410 switch (index)
411 {
412 case 0: return SELL_ERR_CANT_FIND_ITEM;
413 case 1: return SELL_ERR_CANT_SELL_ITEM;
414 case 2: return SELL_ERR_CANT_FIND_VENDOR;
415 case 3: return SELL_ERR_YOU_DONT_OWN_THAT_ITEM;
416 case 4: return SELL_ERR_UNK;
417 case 5: return SELL_ERR_ONLY_EMPTY_BAG;
420 case 8: return SELL_INTERNAL_BAG_ERROR;
421 default: throw std::out_of_range("index");
422 }
423}
@ SELL_ERR_CANT_FIND_VENDOR
Definition: Item.h:157
@ SELL_ERR_UNK
Definition: Item.h:159
@ SELL_INTERNAL_BAG_ERROR
Definition: Item.h:163
@ SELL_ERR_CANT_SELL_TO_THIS_MERCHANT
Definition: Item.h:161
@ SELL_ERR_CANT_FIND_ITEM
Definition: Item.h:155
@ SELL_ERR_MUST_REPAIR_ITEM_DURABILITY_TO_USE
Definition: Item.h:162
@ SELL_ERR_CANT_SELL_ITEM
Definition: Item.h:156
@ SELL_ERR_YOU_DONT_OWN_THAT_ITEM
Definition: Item.h:158
@ SELL_ERR_ONLY_EMPTY_BAG
Definition: Item.h:160

References SELL_ERR_CANT_FIND_ITEM, SELL_ERR_CANT_FIND_VENDOR, SELL_ERR_CANT_SELL_ITEM, SELL_ERR_CANT_SELL_TO_THIS_MERCHANT, SELL_ERR_MUST_REPAIR_ITEM_DURABILITY_TO_USE, SELL_ERR_ONLY_EMPTY_BAG, SELL_ERR_UNK, SELL_ERR_YOU_DONT_OWN_THAT_ITEM, and SELL_INTERNAL_BAG_ERROR.

◆ FromIndex() [13/32]

AC_API_EXPORT UnitFlags EnumUtils< UnitFlags >::FromIndex ( std::size_t  index)
76{
77 switch (index)
78 {
79 case 0: return UNIT_FLAG_NONE;
80 case 1: return UNIT_FLAG_SERVER_CONTROLLED;
81 case 2: return UNIT_FLAG_NON_ATTACKABLE;
82 case 3: return UNIT_FLAG_DISABLE_MOVE;
83 case 4: return UNIT_FLAG_PLAYER_CONTROLLED;
84 case 5: return UNIT_FLAG_RENAME;
85 case 6: return UNIT_FLAG_PREPARATION;
86 case 7: return UNIT_FLAG_UNK_6;
87 case 8: return UNIT_FLAG_NOT_ATTACKABLE_1;
88 case 9: return UNIT_FLAG_IMMUNE_TO_PC;
89 case 10: return UNIT_FLAG_IMMUNE_TO_NPC;
90 case 11: return UNIT_FLAG_LOOTING;
91 case 12: return UNIT_FLAG_PET_IN_COMBAT;
92 case 13: return UNIT_FLAG_PVP;
93 case 14: return UNIT_FLAG_SILENCED;
94 case 15: return UNIT_FLAG_CANNOT_SWIM;
95 case 16: return UNIT_FLAG_SWIMMING;
96 case 17: return UNIT_FLAG_NON_ATTACKABLE_2;
97 case 18: return UNIT_FLAG_PACIFIED;
98 case 19: return UNIT_FLAG_STUNNED;
99 case 20: return UNIT_FLAG_IN_COMBAT;
100 case 21: return UNIT_FLAG_TAXI_FLIGHT;
101 case 22: return UNIT_FLAG_DISARMED;
102 case 23: return UNIT_FLAG_CONFUSED;
103 case 24: return UNIT_FLAG_FLEEING;
104 case 25: return UNIT_FLAG_POSSESSED;
105 case 26: return UNIT_FLAG_NOT_SELECTABLE;
106 case 27: return UNIT_FLAG_SKINNABLE;
107 case 28: return UNIT_FLAG_MOUNT;
108 case 29: return UNIT_FLAG_UNK_28;
110 case 31: return UNIT_FLAG_SHEATHE;
111 case 32: return UNIT_FLAG_IMMUNE;
112 default: throw std::out_of_range("index");
113 }
114}
@ UNIT_FLAG_TAXI_FLIGHT
Definition: UnitDefines.h:249
@ UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT
Definition: UnitDefines.h:258
@ UNIT_FLAG_STUNNED
Definition: UnitDefines.h:247
@ UNIT_FLAG_CANNOT_SWIM
Definition: UnitDefines.h:243
@ UNIT_FLAG_NON_ATTACKABLE
Definition: UnitDefines.h:230
@ UNIT_FLAG_UNK_6
Definition: UnitDefines.h:235
@ UNIT_FLAG_IN_COMBAT
Definition: UnitDefines.h:248
@ UNIT_FLAG_PREPARATION
Definition: UnitDefines.h:234
@ UNIT_FLAG_NON_ATTACKABLE_2
Definition: UnitDefines.h:245
@ UNIT_FLAG_IMMUNE_TO_NPC
Definition: UnitDefines.h:238
@ UNIT_FLAG_PVP
Definition: UnitDefines.h:241
@ UNIT_FLAG_POSSESSED
Definition: UnitDefines.h:253
@ UNIT_FLAG_IMMUNE
Definition: UnitDefines.h:260
@ UNIT_FLAG_NONE
Definition: UnitDefines.h:228
@ UNIT_FLAG_SERVER_CONTROLLED
Definition: UnitDefines.h:229
@ UNIT_FLAG_DISARMED
Definition: UnitDefines.h:250
@ UNIT_FLAG_PACIFIED
Definition: UnitDefines.h:246
@ UNIT_FLAG_SWIMMING
Definition: UnitDefines.h:244
@ UNIT_FLAG_CONFUSED
Definition: UnitDefines.h:251
@ UNIT_FLAG_DISABLE_MOVE
Definition: UnitDefines.h:231
@ UNIT_FLAG_FLEEING
Definition: UnitDefines.h:252
@ UNIT_FLAG_NOT_SELECTABLE
Definition: UnitDefines.h:254
@ UNIT_FLAG_RENAME
Definition: UnitDefines.h:233
@ UNIT_FLAG_LOOTING
Definition: UnitDefines.h:239
@ UNIT_FLAG_IMMUNE_TO_PC
Definition: UnitDefines.h:237
@ UNIT_FLAG_NOT_ATTACKABLE_1
Definition: UnitDefines.h:236
@ UNIT_FLAG_SILENCED
Definition: UnitDefines.h:242
@ UNIT_FLAG_PLAYER_CONTROLLED
Definition: UnitDefines.h:232
@ UNIT_FLAG_SKINNABLE
Definition: UnitDefines.h:255
@ UNIT_FLAG_MOUNT
Definition: UnitDefines.h:256
@ UNIT_FLAG_PET_IN_COMBAT
Definition: UnitDefines.h:240
@ UNIT_FLAG_UNK_28
Definition: UnitDefines.h:257
@ UNIT_FLAG_SHEATHE
Definition: UnitDefines.h:259

References UNIT_FLAG_CANNOT_SWIM, UNIT_FLAG_CONFUSED, UNIT_FLAG_DISABLE_MOVE, UNIT_FLAG_DISARMED, UNIT_FLAG_FLEEING, UNIT_FLAG_IMMUNE, UNIT_FLAG_IMMUNE_TO_NPC, UNIT_FLAG_IMMUNE_TO_PC, UNIT_FLAG_IN_COMBAT, UNIT_FLAG_LOOTING, UNIT_FLAG_MOUNT, UNIT_FLAG_NON_ATTACKABLE, UNIT_FLAG_NON_ATTACKABLE_2, UNIT_FLAG_NONE, UNIT_FLAG_NOT_ATTACKABLE_1, UNIT_FLAG_NOT_SELECTABLE, UNIT_FLAG_PACIFIED, UNIT_FLAG_PET_IN_COMBAT, UNIT_FLAG_PLAYER_CONTROLLED, UNIT_FLAG_POSSESSED, UNIT_FLAG_PREPARATION, UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT, UNIT_FLAG_PVP, UNIT_FLAG_RENAME, UNIT_FLAG_SERVER_CONTROLLED, UNIT_FLAG_SHEATHE, UNIT_FLAG_SILENCED, UNIT_FLAG_SKINNABLE, UNIT_FLAG_STUNNED, UNIT_FLAG_SWIMMING, UNIT_FLAG_TAXI_FLIGHT, UNIT_FLAG_UNK_28, and UNIT_FLAG_UNK_6.

◆ FromIndex() [14/32]

AC_API_EXPORT NPCFlags EnumUtils< NPCFlags >::FromIndex ( std::size_t  index)
203{
204 switch (index)
205 {
206 case 0: return UNIT_NPC_FLAG_GOSSIP;
207 case 1: return UNIT_NPC_FLAG_QUESTGIVER;
208 case 2: return UNIT_NPC_FLAG_UNK1;
209 case 3: return UNIT_NPC_FLAG_UNK2;
210 case 4: return UNIT_NPC_FLAG_TRAINER;
211 case 5: return UNIT_NPC_FLAG_TRAINER_CLASS;
213 case 7: return UNIT_NPC_FLAG_VENDOR;
214 case 8: return UNIT_NPC_FLAG_VENDOR_AMMO;
215 case 9: return UNIT_NPC_FLAG_VENDOR_FOOD;
216 case 10: return UNIT_NPC_FLAG_VENDOR_POISON;
217 case 11: return UNIT_NPC_FLAG_VENDOR_REAGENT;
218 case 12: return UNIT_NPC_FLAG_REPAIR;
219 case 13: return UNIT_NPC_FLAG_FLIGHTMASTER;
220 case 14: return UNIT_NPC_FLAG_SPIRITHEALER;
221 case 15: return UNIT_NPC_FLAG_SPIRITGUIDE;
222 case 16: return UNIT_NPC_FLAG_INNKEEPER;
223 case 17: return UNIT_NPC_FLAG_BANKER;
224 case 18: return UNIT_NPC_FLAG_PETITIONER;
225 case 19: return UNIT_NPC_FLAG_TABARDDESIGNER;
226 case 20: return UNIT_NPC_FLAG_BATTLEMASTER;
227 case 21: return UNIT_NPC_FLAG_AUCTIONEER;
228 case 22: return UNIT_NPC_FLAG_STABLEMASTER;
229 case 23: return UNIT_NPC_FLAG_GUILD_BANKER;
230 case 24: return UNIT_NPC_FLAG_SPELLCLICK;
231 case 25: return UNIT_NPC_FLAG_PLAYER_VEHICLE;
232 case 26: return UNIT_NPC_FLAG_MAILBOX;
233 case 27: return UNIT_NPC_FLAG_VENDOR_MASK;
234 default: throw std::out_of_range("index");
235 }
236}
@ UNIT_NPC_FLAG_VENDOR_AMMO
Definition: UnitDefines.h:302
@ UNIT_NPC_FLAG_TABARDDESIGNER
Definition: UnitDefines.h:313
@ UNIT_NPC_FLAG_BANKER
Definition: UnitDefines.h:311
@ UNIT_NPC_FLAG_AUCTIONEER
Definition: UnitDefines.h:315
@ UNIT_NPC_FLAG_UNK2
Definition: UnitDefines.h:297
@ UNIT_NPC_FLAG_VENDOR_POISON
Definition: UnitDefines.h:304
@ UNIT_NPC_FLAG_GUILD_BANKER
Definition: UnitDefines.h:317
@ UNIT_NPC_FLAG_VENDOR
Definition: UnitDefines.h:301
@ UNIT_NPC_FLAG_STABLEMASTER
Definition: UnitDefines.h:316
@ UNIT_NPC_FLAG_VENDOR_REAGENT
Definition: UnitDefines.h:305
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
@ UNIT_NPC_FLAG_BATTLEMASTER
Definition: UnitDefines.h:314
@ UNIT_NPC_FLAG_VENDOR_FOOD
Definition: UnitDefines.h:303
@ UNIT_NPC_FLAG_QUESTGIVER
Definition: UnitDefines.h:295
@ UNIT_NPC_FLAG_INNKEEPER
Definition: UnitDefines.h:310
@ UNIT_NPC_FLAG_SPELLCLICK
Definition: UnitDefines.h:318
@ UNIT_NPC_FLAG_UNK1
Definition: UnitDefines.h:296
@ UNIT_NPC_FLAG_VENDOR_MASK
Definition: UnitDefines.h:322
@ UNIT_NPC_FLAG_MAILBOX
Definition: UnitDefines.h:320
@ UNIT_NPC_FLAG_PLAYER_VEHICLE
Definition: UnitDefines.h:319
@ UNIT_NPC_FLAG_FLIGHTMASTER
Definition: UnitDefines.h:307
@ UNIT_NPC_FLAG_TRAINER_CLASS
Definition: UnitDefines.h:299
@ UNIT_NPC_FLAG_TRAINER_PROFESSION
Definition: UnitDefines.h:300
@ UNIT_NPC_FLAG_REPAIR
Definition: UnitDefines.h:306
@ UNIT_NPC_FLAG_TRAINER
Definition: UnitDefines.h:298
@ UNIT_NPC_FLAG_PETITIONER
Definition: UnitDefines.h:312
@ UNIT_NPC_FLAG_SPIRITGUIDE
Definition: UnitDefines.h:309
@ UNIT_NPC_FLAG_SPIRITHEALER
Definition: UnitDefines.h:308

References UNIT_NPC_FLAG_AUCTIONEER, UNIT_NPC_FLAG_BANKER, UNIT_NPC_FLAG_BATTLEMASTER, UNIT_NPC_FLAG_FLIGHTMASTER, UNIT_NPC_FLAG_GOSSIP, UNIT_NPC_FLAG_GUILD_BANKER, UNIT_NPC_FLAG_INNKEEPER, UNIT_NPC_FLAG_MAILBOX, UNIT_NPC_FLAG_PETITIONER, UNIT_NPC_FLAG_PLAYER_VEHICLE, UNIT_NPC_FLAG_QUESTGIVER, UNIT_NPC_FLAG_REPAIR, UNIT_NPC_FLAG_SPELLCLICK, UNIT_NPC_FLAG_SPIRITGUIDE, UNIT_NPC_FLAG_SPIRITHEALER, UNIT_NPC_FLAG_STABLEMASTER, UNIT_NPC_FLAG_TABARDDESIGNER, UNIT_NPC_FLAG_TRAINER, UNIT_NPC_FLAG_TRAINER_CLASS, UNIT_NPC_FLAG_TRAINER_PROFESSION, UNIT_NPC_FLAG_UNK1, UNIT_NPC_FLAG_UNK2, UNIT_NPC_FLAG_VENDOR, UNIT_NPC_FLAG_VENDOR_AMMO, UNIT_NPC_FLAG_VENDOR_FOOD, UNIT_NPC_FLAG_VENDOR_MASK, UNIT_NPC_FLAG_VENDOR_POISON, and UNIT_NPC_FLAG_VENDOR_REAGENT.

◆ FromIndex() [15/32]

AC_API_EXPORT QuestFailedReason EnumUtils< QuestFailedReason >::FromIndex ( std::size_t  index)
56{
57 switch (index)
58 {
59 case 0: return INVALIDREASON_DONT_HAVE_REQ;
64 case 5: return INVALIDREASON_QUEST_ALREADY_ON;
70 case 11: return INVALIDREASON_QUEST_FAILED_CAIS;
72 default: throw std::out_of_range("index");
73 }
74}
@ INVALIDREASON_DONT_HAVE_REQ
Definition: QuestDef.h:48
@ INVALIDREASON_QUEST_FAILED_CAIS
Definition: QuestDef.h:59
@ INVALIDREASON_QUEST_ALREADY_ON2
Definition: QuestDef.h:55
@ INVALIDREASON_QUEST_ALREADY_ON
Definition: QuestDef.h:53
@ INVALIDREASON_QUEST_FAILED_MISSING_ITEMS
Definition: QuestDef.h:56
@ INVALIDREASON_QUEST_FAILED_WRONG_RACE
Definition: QuestDef.h:50
@ INVALIDREASON_DAILY_QUEST_COMPLETED_TODAY
Definition: QuestDef.h:60
@ INVALIDREASON_QUEST_ALREADY_DONE
Definition: QuestDef.h:51
@ INVALIDREASON_QUEST_ONLY_ONE_TIMED
Definition: QuestDef.h:52
@ INVALIDREASON_QUEST_FAILED_NOT_ENOUGH_MONEY
Definition: QuestDef.h:57
@ INVALIDREASON_QUEST_FAILED_LOW_LEVEL
Definition: QuestDef.h:49
@ INVALIDREASON_DAILY_QUESTS_REMAINING
Definition: QuestDef.h:58
@ INVALIDREASON_QUEST_FAILED_EXPANSION
Definition: QuestDef.h:54

References INVALIDREASON_DAILY_QUEST_COMPLETED_TODAY, INVALIDREASON_DAILY_QUESTS_REMAINING, INVALIDREASON_DONT_HAVE_REQ, INVALIDREASON_QUEST_ALREADY_DONE, INVALIDREASON_QUEST_ALREADY_ON, INVALIDREASON_QUEST_ALREADY_ON2, INVALIDREASON_QUEST_FAILED_CAIS, INVALIDREASON_QUEST_FAILED_EXPANSION, INVALIDREASON_QUEST_FAILED_LOW_LEVEL, INVALIDREASON_QUEST_FAILED_MISSING_ITEMS, INVALIDREASON_QUEST_FAILED_NOT_ENOUGH_MONEY, INVALIDREASON_QUEST_FAILED_WRONG_RACE, and INVALIDREASON_QUEST_ONLY_ONE_TIMED.

◆ FromIndex() [16/32]

AC_API_EXPORT QuestShareMessages EnumUtils< QuestShareMessages >::FromIndex ( std::size_t  index)
126{
127 switch (index)
128 {
129 case 0: return QUEST_PARTY_MSG_SHARING_QUEST;
130 case 1: return QUEST_PARTY_MSG_CANT_TAKE_QUEST;
131 case 2: return QUEST_PARTY_MSG_ACCEPT_QUEST;
132 case 3: return QUEST_PARTY_MSG_DECLINE_QUEST;
133 case 4: return QUEST_PARTY_MSG_BUSY;
134 case 5: return QUEST_PARTY_MSG_LOG_FULL;
135 case 6: return QUEST_PARTY_MSG_HAVE_QUEST;
136 case 7: return QUEST_PARTY_MSG_FINISH_QUEST;
139 case 10: return QUEST_PARTY_MSG_NOT_IN_PARTY;
140 default: throw std::out_of_range("index");
141 }
142}
@ QUEST_PARTY_MSG_FINISH_QUEST
Definition: QuestDef.h:73
@ QUEST_PARTY_MSG_CANT_TAKE_QUEST
Definition: QuestDef.h:67
@ QUEST_PARTY_MSG_BUSY
Definition: QuestDef.h:70
@ QUEST_PARTY_MSG_ACCEPT_QUEST
Definition: QuestDef.h:68
@ QUEST_PARTY_MSG_HAVE_QUEST
Definition: QuestDef.h:72
@ QUEST_PARTY_MSG_SHARING_TIMER_EXPIRED
Definition: QuestDef.h:75
@ QUEST_PARTY_MSG_CANT_BE_SHARED_TODAY
Definition: QuestDef.h:74
@ QUEST_PARTY_MSG_SHARING_QUEST
Definition: QuestDef.h:66
@ QUEST_PARTY_MSG_LOG_FULL
Definition: QuestDef.h:71
@ QUEST_PARTY_MSG_NOT_IN_PARTY
Definition: QuestDef.h:76
@ QUEST_PARTY_MSG_DECLINE_QUEST
Definition: QuestDef.h:69

References QUEST_PARTY_MSG_ACCEPT_QUEST, QUEST_PARTY_MSG_BUSY, QUEST_PARTY_MSG_CANT_BE_SHARED_TODAY, QUEST_PARTY_MSG_CANT_TAKE_QUEST, QUEST_PARTY_MSG_DECLINE_QUEST, QUEST_PARTY_MSG_FINISH_QUEST, QUEST_PARTY_MSG_HAVE_QUEST, QUEST_PARTY_MSG_LOG_FULL, QUEST_PARTY_MSG_NOT_IN_PARTY, QUEST_PARTY_MSG_SHARING_QUEST, and QUEST_PARTY_MSG_SHARING_TIMER_EXPIRED.

◆ FromIndex() [17/32]

AC_API_EXPORT WardenActions EnumUtils< WardenActions >::FromIndex ( std::size_t  index)
46{
47 switch (index)
48 {
49 case 0: return WARDEN_ACTION_LOG;
50 case 1: return WARDEN_ACTION_KICK;
51 case 2: return WARDEN_ACTION_BAN;
52 default: throw std::out_of_range("index");
53 }
54}
@ WARDEN_ACTION_KICK
Definition: WardenCheckMgr.h:28
@ WARDEN_ACTION_BAN
Definition: WardenCheckMgr.h:29
@ WARDEN_ACTION_LOG
Definition: WardenCheckMgr.h:27

References WARDEN_ACTION_BAN, WARDEN_ACTION_KICK, and WARDEN_ACTION_LOG.

◆ FromIndex() [18/32]

AC_API_EXPORT Races EnumUtils< Races >::FromIndex ( std::size_t  index)
54{
55 switch (index)
56 {
57 case 0: return RACE_HUMAN;
58 case 1: return RACE_ORC;
59 case 2: return RACE_DWARF;
60 case 3: return RACE_NIGHTELF;
61 case 4: return RACE_UNDEAD_PLAYER;
62 case 5: return RACE_TAUREN;
63 case 6: return RACE_GNOME;
64 case 7: return RACE_TROLL;
65 case 8: return RACE_BLOODELF;
66 case 9: return RACE_DRAENEI;
67 default: throw std::out_of_range("index");
68 }
69}
@ RACE_TROLL
Definition: SharedDefines.h:78
@ RACE_UNDEAD_PLAYER
Definition: SharedDefines.h:75
@ RACE_ORC
Definition: SharedDefines.h:72
@ RACE_DRAENEI
Definition: SharedDefines.h:81
@ RACE_NIGHTELF
Definition: SharedDefines.h:74
@ RACE_BLOODELF
Definition: SharedDefines.h:80
@ RACE_DWARF
Definition: SharedDefines.h:73
@ RACE_GNOME
Definition: SharedDefines.h:77
@ RACE_HUMAN
Definition: SharedDefines.h:71
@ RACE_TAUREN
Definition: SharedDefines.h:76

References RACE_BLOODELF, RACE_DRAENEI, RACE_DWARF, RACE_GNOME, RACE_HUMAN, RACE_NIGHTELF, RACE_ORC, RACE_TAUREN, RACE_TROLL, and RACE_UNDEAD_PLAYER.

◆ FromIndex() [19/32]

AC_API_EXPORT Classes EnumUtils< Classes >::FromIndex ( std::size_t  index)
117{
118 switch (index)
119 {
120 case 0: return CLASS_WARRIOR;
121 case 1: return CLASS_PALADIN;
122 case 2: return CLASS_HUNTER;
123 case 3: return CLASS_ROGUE;
124 case 4: return CLASS_PRIEST;
125 case 5: return CLASS_DEATH_KNIGHT;
126 case 6: return CLASS_SHAMAN;
127 case 7: return CLASS_MAGE;
128 case 8: return CLASS_WARLOCK;
129 case 9: return CLASS_DRUID;
130 default: throw std::out_of_range("index");
131 }
132}
@ CLASS_HUNTER
Definition: SharedDefines.h:143
@ CLASS_DRUID
Definition: SharedDefines.h:151
@ CLASS_SHAMAN
Definition: SharedDefines.h:147
@ CLASS_PRIEST
Definition: SharedDefines.h:145
@ CLASS_WARRIOR
Definition: SharedDefines.h:141
@ CLASS_WARLOCK
Definition: SharedDefines.h:149
@ CLASS_MAGE
Definition: SharedDefines.h:148
@ CLASS_DEATH_KNIGHT
Definition: SharedDefines.h:146
@ CLASS_PALADIN
Definition: SharedDefines.h:142
@ CLASS_ROGUE
Definition: SharedDefines.h:144

References CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, and CLASS_WARRIOR.

◆ FromIndex() [20/32]

AC_API_EXPORT SpellAttr0 EnumUtils< SpellAttr0 >::FromIndex ( std::size_t  index)
202{
203 switch (index)
204 {
206 case 1: return SPELL_ATTR0_USES_RANGED_SLOT;
209 case 4: return SPELL_ATTR0_IS_ABILITY;
210 case 5: return SPELL_ATTR0_IS_TRADESKILL;
211 case 6: return SPELL_ATTR0_PASSIVE;
212 case 7: return SPELL_ATTR0_DO_NOT_DISPLAY;
213 case 8: return SPELL_ATTR0_DO_NOT_LOG;
214 case 9: return SPELL_ATTR0_HELD_ITEM_ONLY;
215 case 10: return SPELL_ATTR0_ON_NEXT_SWING;
217 case 12: return SPELL_ATTR0_SERVER_ONLY;
219 case 14: return SPELL_ATTR0_ONLY_INDOORS;
220 case 15: return SPELL_ATTR0_ONLY_OUTDOORS;
221 case 16: return SPELL_ATTR0_NOT_SHAPESHIFTED;
222 case 17: return SPELL_ATTR0_ONLY_STEALTHED;
223 case 18: return SPELL_ATTR0_DO_NOT_SHEATH;
226 case 21: return SPELL_ATTR0_NO_ACTIVE_DEFENSE;
228 case 23: return SPELL_ATTR0_ALLOW_CAST_WHILE_DEAD;
229 case 24: return SPELL_ATTR0_ALLOW_WHILE_MOUNTED;
230 case 25: return SPELL_ATTR0_COOLDOWN_ON_EVENT;
231 case 26: return SPELL_ATTR0_AURA_IS_DEBUFF;
232 case 27: return SPELL_ATTR0_ALLOW_WHILE_SITTING;
234 case 29: return SPELL_ATTR0_NO_IMMUNITIES;
235 case 30: return SPELL_ATTR0_HEARTBEAT_RESIST;
236 case 31: return SPELL_ATTR0_NO_AURA_CANCEL;
237 default: throw std::out_of_range("index");
238 }
239}
@ SPELL_ATTR0_ON_NEXT_SWING
Definition: SharedDefines.h:392
@ SPELL_ATTR0_ONLY_INDOORS
Definition: SharedDefines.h:396
@ SPELL_ATTR0_NO_ACTIVE_DEFENSE
Definition: SharedDefines.h:403
@ SPELL_ATTR0_IS_TRADESKILL
Definition: SharedDefines.h:387
@ SPELL_ATTR0_NOT_SHAPESHIFTED
Definition: SharedDefines.h:398
@ SPELL_ATTR0_ALLOW_ITEM_SPELL_IN_PVP
Definition: SharedDefines.h:395
@ SPELL_ATTR0_ALLOW_WHILE_SITTING
Definition: SharedDefines.h:409
@ SPELL_ATTR0_AURA_IS_DEBUFF
Definition: SharedDefines.h:408
@ SPELL_ATTR0_ONLY_OUTDOORS
Definition: SharedDefines.h:397
@ SPELL_ATTR0_ALLOW_WHILE_MOUNTED
Definition: SharedDefines.h:406
@ SPELL_ATTR0_PASSIVE
Definition: SharedDefines.h:388
@ SPELL_ATTR0_COOLDOWN_ON_EVENT
Definition: SharedDefines.h:407
@ SPELL_ATTR0_IS_ABILITY
Definition: SharedDefines.h:386
@ SPELL_ATTR0_DO_NOT_LOG_IMMUNE_MISSES
Definition: SharedDefines.h:385
@ SPELL_ATTR0_NO_IMMUNITIES
Definition: SharedDefines.h:411
@ SPELL_ATTR0_HELD_ITEM_ONLY
Definition: SharedDefines.h:391
@ SPELL_ATTR0_CANCELS_AUTO_ATTACK_COMBAT
Definition: SharedDefines.h:402
@ SPELL_ATTR0_DO_NOT_LOG
Definition: SharedDefines.h:390
@ SPELL_ATTR0_NO_AURA_CANCEL
Definition: SharedDefines.h:413
@ SPELL_ATTR0_WEARER_CASTS_PROC_TRIGGER
Definition: SharedDefines.h:393
@ SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE
Definition: SharedDefines.h:382
@ SPELL_ATTR0_TRACK_TARGET_IN_CAST_PLAYER_ONLY
Definition: SharedDefines.h:404
@ SPELL_ATTR0_SCALES_WITH_CREATURE_LEVEL
Definition: SharedDefines.h:401
@ SPELL_ATTR0_HEARTBEAT_RESIST
Definition: SharedDefines.h:412
@ SPELL_ATTR0_SERVER_ONLY
Definition: SharedDefines.h:394
@ SPELL_ATTR0_DO_NOT_DISPLAY
Definition: SharedDefines.h:389
@ SPELL_ATTR0_NOT_IN_COMBAT_ONLY_PEACEFUL
Definition: SharedDefines.h:410
@ SPELL_ATTR0_USES_RANGED_SLOT
Definition: SharedDefines.h:383
@ SPELL_ATTR0_ALLOW_CAST_WHILE_DEAD
Definition: SharedDefines.h:405
@ SPELL_ATTR0_ON_NEXT_SWING_NO_DAMAGE
Definition: SharedDefines.h:384
@ SPELL_ATTR0_ONLY_STEALTHED
Definition: SharedDefines.h:399
@ SPELL_ATTR0_DO_NOT_SHEATH
Definition: SharedDefines.h:400

References SPELL_ATTR0_ALLOW_CAST_WHILE_DEAD, SPELL_ATTR0_ALLOW_ITEM_SPELL_IN_PVP, SPELL_ATTR0_ALLOW_WHILE_MOUNTED, SPELL_ATTR0_ALLOW_WHILE_SITTING, SPELL_ATTR0_AURA_IS_DEBUFF, SPELL_ATTR0_CANCELS_AUTO_ATTACK_COMBAT, SPELL_ATTR0_COOLDOWN_ON_EVENT, SPELL_ATTR0_DO_NOT_DISPLAY, SPELL_ATTR0_DO_NOT_LOG, SPELL_ATTR0_DO_NOT_LOG_IMMUNE_MISSES, SPELL_ATTR0_DO_NOT_SHEATH, SPELL_ATTR0_HEARTBEAT_RESIST, SPELL_ATTR0_HELD_ITEM_ONLY, SPELL_ATTR0_IS_ABILITY, SPELL_ATTR0_IS_TRADESKILL, SPELL_ATTR0_NO_ACTIVE_DEFENSE, SPELL_ATTR0_NO_AURA_CANCEL, SPELL_ATTR0_NO_IMMUNITIES, SPELL_ATTR0_NOT_IN_COMBAT_ONLY_PEACEFUL, SPELL_ATTR0_NOT_SHAPESHIFTED, SPELL_ATTR0_ON_NEXT_SWING, SPELL_ATTR0_ON_NEXT_SWING_NO_DAMAGE, SPELL_ATTR0_ONLY_INDOORS, SPELL_ATTR0_ONLY_OUTDOORS, SPELL_ATTR0_ONLY_STEALTHED, SPELL_ATTR0_PASSIVE, SPELL_ATTR0_PROC_FAILURE_BURNS_CHARGE, SPELL_ATTR0_SCALES_WITH_CREATURE_LEVEL, SPELL_ATTR0_SERVER_ONLY, SPELL_ATTR0_TRACK_TARGET_IN_CAST_PLAYER_ONLY, SPELL_ATTR0_USES_RANGED_SLOT, and SPELL_ATTR0_WEARER_CASTS_PROC_TRIGGER.

◆ FromIndex() [21/32]

AC_API_EXPORT SpellAttr1 EnumUtils< SpellAttr1 >::FromIndex ( std::size_t  index)
331{
332 switch (index)
333 {
334 case 0: return SPELL_ATTR1_DISMISS_PET_FIRST;
335 case 1: return SPELL_ATTR1_USE_ALL_MANA;
336 case 2: return SPELL_ATTR1_IS_CHANNELED;
337 case 3: return SPELL_ATTR1_NO_REDIRECTION;
338 case 4: return SPELL_ATTR1_NO_SKILL_INCREASE;
340 case 6: return SPELL_ATTR1_IS_SELF_CHANNELED;
341 case 7: return SPELL_ATTR1_NO_REFLECTION;
343 case 9: return SPELL_ATTR1_INITIATE_COMBAT;
344 case 10: return SPELL_ATTR1_NO_THREAT;
345 case 11: return SPELL_ATTR1_AURA_UNIQUE;
347 case 13: return SPELL_ATTR1_TOGGLE_FAR_SIGHT;
351 case 17: return SPELL_ATTR1_NO_AUTOCAST_AI;
352 case 18: return SPELL_ATTR1_PREVENTS_ANIM;
353 case 19: return SPELL_ATTR1_EXCLUDE_CASTER;
354 case 20: return SPELL_ATTR1_FINISHING_MOVE_DAMAGE;
355 case 21: return SPELL_ATTR1_THREAT_ONLY_ON_MISS;
357 case 23: return SPELL_ATTR1_IGNORE_OWNERS_DEATH;
358 case 24: return SPELL_ATTR1_SPECIAL_SKILLUP;
360 case 26: return SPELL_ATTR1_REQUIRE_ALL_TARGETS;
362 case 28: return SPELL_ATTR1_NO_AURA_ICON;
363 case 29: return SPELL_ATTR1_NAME_IN_CHANNEL_BAR;
364 case 30: return SPELL_ATTR1_COMBO_ON_BLOCK;
365 case 31: return SPELL_ATTR1_CAST_WHEN_LEARNED;
366 default: throw std::out_of_range("index");
367 }
368}
@ SPELL_ATTR1_PREVENTS_ANIM
Definition: SharedDefines.h:437
@ SPELL_ATTR1_NO_THREAT
Definition: SharedDefines.h:429
@ SPELL_ATTR1_IGNORE_OWNERS_DEATH
Definition: SharedDefines.h:442
@ SPELL_ATTR1_REQUIRE_ALL_TARGETS
Definition: SharedDefines.h:445
@ SPELL_ATTR1_EXCLUDE_CASTER
Definition: SharedDefines.h:438
@ SPELL_ATTR1_SPECIAL_SKILLUP
Definition: SharedDefines.h:443
@ SPELL_ATTR1_IS_CHANNELED
Definition: SharedDefines.h:421
@ SPELL_ATTR1_CAST_WHEN_LEARNED
Definition: SharedDefines.h:450
@ SPELL_ATTR1_USE_ALL_MANA
Definition: SharedDefines.h:420
@ SPELL_ATTR1_ALLOW_WHILE_STEALTHED
Definition: SharedDefines.h:424
@ SPELL_ATTR1_NO_AURA_ICON
Definition: SharedDefines.h:447
@ SPELL_ATTR1_TOGGLE_FAR_SIGHT
Definition: SharedDefines.h:432
@ SPELL_ATTR1_IS_SELF_CHANNELED
Definition: SharedDefines.h:425
@ SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT
Definition: SharedDefines.h:444
@ SPELL_ATTR1_TRACK_TARGET_IN_CHANNEL
Definition: SharedDefines.h:433
@ SPELL_ATTR1_FAILURE_BREAKS_STEALTH
Definition: SharedDefines.h:431
@ SPELL_ATTR1_NAME_IN_CHANNEL_BAR
Definition: SharedDefines.h:448
@ SPELL_ATTR1_AURA_UNIQUE
Definition: SharedDefines.h:430
@ SPELL_ATTR1_FINISHING_MOVE_DURATION
Definition: SharedDefines.h:441
@ SPELL_ATTR1_NO_AUTOCAST_AI
Definition: SharedDefines.h:436
@ SPELL_ATTR1_NO_SKILL_INCREASE
Definition: SharedDefines.h:423
@ SPELL_ATTR1_COMBO_ON_BLOCK
Definition: SharedDefines.h:449
@ SPELL_ATTR1_INITIATE_COMBAT
Definition: SharedDefines.h:428
@ SPELL_ATTR1_IMMUNITY_PURGES_EFFECT
Definition: SharedDefines.h:434
@ SPELL_ATTR1_NO_REFLECTION
Definition: SharedDefines.h:426
@ SPELL_ATTR1_FINISHING_MOVE_DAMAGE
Definition: SharedDefines.h:439
@ SPELL_ATTR1_THREAT_ONLY_ON_MISS
Definition: SharedDefines.h:440
@ SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS
Definition: SharedDefines.h:435
@ SPELL_ATTR1_DISMISS_PET_FIRST
Definition: SharedDefines.h:419
@ SPELL_ATTR1_DISCOUNT_POWER_ON_MISS
Definition: SharedDefines.h:446
@ SPELL_ATTR1_ONLY_PEACEFUL_TARGETS
Definition: SharedDefines.h:427
@ SPELL_ATTR1_NO_REDIRECTION
Definition: SharedDefines.h:422

References SPELL_ATTR1_ALLOW_WHILE_STEALTHED, SPELL_ATTR1_AURA_STAYS_AFTER_COMBAT, SPELL_ATTR1_AURA_UNIQUE, SPELL_ATTR1_CAST_WHEN_LEARNED, SPELL_ATTR1_COMBO_ON_BLOCK, SPELL_ATTR1_DISCOUNT_POWER_ON_MISS, SPELL_ATTR1_DISMISS_PET_FIRST, SPELL_ATTR1_EXCLUDE_CASTER, SPELL_ATTR1_FAILURE_BREAKS_STEALTH, SPELL_ATTR1_FINISHING_MOVE_DAMAGE, SPELL_ATTR1_FINISHING_MOVE_DURATION, SPELL_ATTR1_IGNORE_OWNERS_DEATH, SPELL_ATTR1_IMMUNITY_PURGES_EFFECT, SPELL_ATTR1_IMMUNITY_TO_HOSTILE_AND_FRIENDLY_EFFECTS, SPELL_ATTR1_INITIATE_COMBAT, SPELL_ATTR1_IS_CHANNELED, SPELL_ATTR1_IS_SELF_CHANNELED, SPELL_ATTR1_NAME_IN_CHANNEL_BAR, SPELL_ATTR1_NO_AURA_ICON, SPELL_ATTR1_NO_AUTOCAST_AI, SPELL_ATTR1_NO_REDIRECTION, SPELL_ATTR1_NO_REFLECTION, SPELL_ATTR1_NO_SKILL_INCREASE, SPELL_ATTR1_NO_THREAT, SPELL_ATTR1_ONLY_PEACEFUL_TARGETS, SPELL_ATTR1_PREVENTS_ANIM, SPELL_ATTR1_REQUIRE_ALL_TARGETS, SPELL_ATTR1_SPECIAL_SKILLUP, SPELL_ATTR1_THREAT_ONLY_ON_MISS, SPELL_ATTR1_TOGGLE_FAR_SIGHT, SPELL_ATTR1_TRACK_TARGET_IN_CHANNEL, and SPELL_ATTR1_USE_ALL_MANA.

◆ FromIndex() [22/32]

AC_API_EXPORT SpellAttr2 EnumUtils< SpellAttr2 >::FromIndex ( std::size_t  index)
460{
461 switch (index)
462 {
463 case 0: return SPELL_ATTR2_ALLOW_DEAD_TARGET;
464 case 1: return SPELL_ATTR2_NO_SHAPESHIFT_UI;
467 case 4: return SPELL_ATTR2_USE_SHAPESHIFT_BAR;
468 case 5: return SPELL_ATTR2_AUTO_REPEAT;
472 case 9: return SPELL_ATTR2_ALWAYS_CAST_AS_UNIT;
473 case 10: return SPELL_ATTR2_SPECIAL_TAMING_FLAG;
475 case 12: return SPELL_ATTR2_CHAIN_FROM_CASTER;
476 case 13: return SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY;
477 case 14: return SPELL_ATTR2_ALLOW_WHILE_INVISIBLE;
479 case 16: return SPELL_ATTR2_NO_ACTIVE_PETS;
485 case 22: return SPELL_ATTR2_NO_INITIAL_THREAD;
488 case 25: return SPELL_ATTR2_DONT_BLOCK_MANA_REGEN;
489 case 26: return SPELL_ATTR2_NO_SCHOOL_IMMUNITIES;
490 case 27: return SPELL_ATTR2_IGNORE_WEAPONSKILL;
491 case 28: return SPELL_ATTR2_NOT_AN_ACTION;
492 case 29: return SPELL_ATTR2_CANT_CRIT;
493 case 30: return SPELL_ATTR2_ACTIVE_THREAT;
494 case 31: return SPELL_ATTR2_RETAIN_ITEM_CAST;
495 default: throw std::out_of_range("index");
496 }
497}
@ SPELL_ATTR2_AUTO_REPEAT
Definition: SharedDefines.h:461
@ SPELL_ATTR2_CHAIN_FROM_CASTER
Definition: SharedDefines.h:468
@ SPELL_ATTR2_DONT_BLOCK_MANA_REGEN
Definition: SharedDefines.h:481
@ SPELL_ATTR2_ITEM_CAST_WITH_OWNER_SKILL
Definition: SharedDefines.h:480
@ SPELL_ATTR2_SPECIAL_TAMING_FLAG
Definition: SharedDefines.h:466
@ SPELL_ATTR2_ALLOW_WHILE_INVISIBLE
Definition: SharedDefines.h:470
@ SPELL_ATTR2_CANT_CRIT
Definition: SharedDefines.h:485
@ SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE
Definition: SharedDefines.h:479
@ SPELL_ATTR2_NO_TARGET_PER_SECOND_COST
Definition: SharedDefines.h:467
@ SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY
Definition: SharedDefines.h:469
@ SPELL_ATTR2_CANNOT_CAST_ON_TAPPED
Definition: SharedDefines.h:462
@ SPELL_ATTR2_DO_NOT_REPORT_SPELL_FAILURE
Definition: SharedDefines.h:463
@ SPELL_ATTR2_USE_SHAPESHIFT_BAR
Definition: SharedDefines.h:460
@ SPELL_ATTR2_RETAIN_ITEM_CAST
Definition: SharedDefines.h:487
@ SPELL_ATTR2_DO_NOT_CONSUME_IF_GAINED_DURING_CAST
Definition: SharedDefines.h:471
@ SPELL_ATTR2_NO_SHAPESHIFT_UI
Definition: SharedDefines.h:457
@ SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED
Definition: SharedDefines.h:475
@ SPELL_ATTR2_ACTIVE_THREAT
Definition: SharedDefines.h:486
@ SPELL_ATTR2_NOT_AN_ACTION
Definition: SharedDefines.h:484
@ SPELL_ATTR2_IGNORE_WEAPONSKILL
Definition: SharedDefines.h:483
@ SPELL_ATTR2_ALLOW_LOW_LEVEL_BUFF
Definition: SharedDefines.h:459
@ SPELL_ATTR2_NO_INITIAL_THREAD
Definition: SharedDefines.h:478
@ SPELL_ATTR2_INITIATE_COMBAT_POST_CAST
Definition: SharedDefines.h:476
@ SPELL_ATTR2_INCLUDE_IN_ADVANCED_COMBAT_LOG
Definition: SharedDefines.h:464
@ SPELL_ATTR2_ALWAYS_CAST_AS_UNIT
Definition: SharedDefines.h:465
@ SPELL_ATTR2_NO_JUMP_WHILE_CAST_PENDING
Definition: SharedDefines.h:474
@ SPELL_ATTR2_NO_ACTIVE_PETS
Definition: SharedDefines.h:472
@ SPELL_ATTR2_ALLOW_DEAD_TARGET
Definition: SharedDefines.h:456
@ SPELL_ATTR2_IGNORE_LINE_OF_SIGHT
Definition: SharedDefines.h:458
@ SPELL_ATTR2_FAIL_ON_ALL_TARGETS_IMMUNE
Definition: SharedDefines.h:477
@ SPELL_ATTR2_DO_NOT_RESET_COMBAT_TIMERS
Definition: SharedDefines.h:473
@ SPELL_ATTR2_NO_SCHOOL_IMMUNITIES
Definition: SharedDefines.h:482

References SPELL_ATTR2_ACTIVE_THREAT, SPELL_ATTR2_ALLOW_DEAD_TARGET, SPELL_ATTR2_ALLOW_LOW_LEVEL_BUFF, SPELL_ATTR2_ALLOW_WHILE_INVISIBLE, SPELL_ATTR2_ALLOW_WHILE_NOT_SHAPESHIFTED, SPELL_ATTR2_ALWAYS_CAST_AS_UNIT, SPELL_ATTR2_AUTO_REPEAT, SPELL_ATTR2_CANNOT_CAST_ON_TAPPED, SPELL_ATTR2_CANT_CRIT, SPELL_ATTR2_CHAIN_FROM_CASTER, SPELL_ATTR2_DO_NOT_CONSUME_IF_GAINED_DURING_CAST, SPELL_ATTR2_DO_NOT_REPORT_SPELL_FAILURE, SPELL_ATTR2_DO_NOT_RESET_COMBAT_TIMERS, SPELL_ATTR2_DONT_BLOCK_MANA_REGEN, SPELL_ATTR2_ENCHANT_OWN_ITEM_ONLY, SPELL_ATTR2_FAIL_ON_ALL_TARGETS_IMMUNE, SPELL_ATTR2_IGNORE_LINE_OF_SIGHT, SPELL_ATTR2_IGNORE_WEAPONSKILL, SPELL_ATTR2_INCLUDE_IN_ADVANCED_COMBAT_LOG, SPELL_ATTR2_INITIATE_COMBAT_POST_CAST, SPELL_ATTR2_ITEM_CAST_WITH_OWNER_SKILL, SPELL_ATTR2_NO_ACTIVE_PETS, SPELL_ATTR2_NO_INITIAL_THREAD, SPELL_ATTR2_NO_JUMP_WHILE_CAST_PENDING, SPELL_ATTR2_NO_SCHOOL_IMMUNITIES, SPELL_ATTR2_NO_SHAPESHIFT_UI, SPELL_ATTR2_NO_TARGET_PER_SECOND_COST, SPELL_ATTR2_NOT_AN_ACTION, SPELL_ATTR2_PROC_COOLDOWN_ON_FAILURE, SPELL_ATTR2_RETAIN_ITEM_CAST, SPELL_ATTR2_SPECIAL_TAMING_FLAG, and SPELL_ATTR2_USE_SHAPESHIFT_BAR.

◆ FromIndex() [23/32]

AC_API_EXPORT SpellAttr3 EnumUtils< SpellAttr3 >::FromIndex ( std::size_t  index)
589{
590 switch (index)
591 {
592 case 0: return SPELL_ATTR3_PVP_ENABLING;
594 case 2: return SPELL_ATTR3_NO_CASTING_BAR_TEXT;
595 case 3: return SPELL_ATTR3_COMPLETELY_BLOCKED;
596 case 4: return SPELL_ATTR3_NO_RES_TIMER;
597 case 5: return SPELL_ATTR3_NO_DURABILITY_LOSS;
598 case 6: return SPELL_ATTR3_NO_AVOIDANCE;
599 case 7: return SPELL_ATTR3_DOT_STACKING_RULE;
600 case 8: return SPELL_ATTR3_ONLY_ON_PLAYER;
601 case 9: return SPELL_ATTR3_NOT_A_PROC;
603 case 11: return SPELL_ATTR3_ONLY_BATTLEGROUNDS;
604 case 12: return SPELL_ATTR3_ONLY_ON_GHOSTS;
605 case 13: return SPELL_ATTR3_HIDE_CHANNEL_BAR;
606 case 14: return SPELL_ATTR3_HIDE_IN_RAID_FILTER;
607 case 15: return SPELL_ATTR3_NORMAL_RANGED_ATTACK;
608 case 16: return SPELL_ATTR3_SUPPRESS_CASTER_PROCS;
609 case 17: return SPELL_ATTR3_SUPPRESS_TARGET_PROCS;
610 case 18: return SPELL_ATTR3_ALWAYS_HIT;
611 case 19: return SPELL_ATTR3_INSTANT_TARGET_PROCS;
612 case 20: return SPELL_ATTR3_ALLOW_AURA_WHILE_DEAD;
613 case 21: return SPELL_ATTR3_ONLY_PROC_OUTDOORS;
615 case 23: return SPELL_ATTR3_NO_DAMAGE_HISTORY;
617 case 25: return SPELL_ATTR3_TREAT_AS_PERIODIC;
618 case 26: return SPELL_ATTR3_CAN_PROC_FROM_PROCS;
619 case 27: return SPELL_ATTR3_ONLY_PROC_ON_CASTER;
622 case 30: return SPELL_ATTR3_DO_NOT_DISPLAY_RANGE;
623 case 31: return SPELL_ATTR3_NOT_ON_AOE_IMMUNE;
624 default: throw std::out_of_range("index");
625 }
626}
@ SPELL_ATTR3_TREAT_AS_PERIODIC
Definition: SharedDefines.h:518
@ SPELL_ATTR3_ALLOW_AURA_WHILE_DEAD
Definition: SharedDefines.h:513
@ SPELL_ATTR3_NOT_A_PROC
Definition: SharedDefines.h:502
@ SPELL_ATTR3_NO_CASTING_BAR_TEXT
Definition: SharedDefines.h:495
@ SPELL_ATTR3_SUPPRESS_TARGET_PROCS
Definition: SharedDefines.h:510
@ SPELL_ATTR3_ONLY_BATTLEGROUNDS
Definition: SharedDefines.h:504
@ SPELL_ATTR3_DO_NOT_DISPLAY_RANGE
Definition: SharedDefines.h:523
@ SPELL_ATTR3_ONLY_PROC_ON_CASTER
Definition: SharedDefines.h:520
@ SPELL_ATTR3_IGNORE_CASTER_AND_TARGET_RESTRICTIONS
Definition: SharedDefines.h:521
@ SPELL_ATTR3_NO_DURABILITY_LOSS
Definition: SharedDefines.h:498
@ SPELL_ATTR3_ONLY_ON_GHOSTS
Definition: SharedDefines.h:505
@ SPELL_ATTR3_NO_RES_TIMER
Definition: SharedDefines.h:497
@ SPELL_ATTR3_NOT_ON_AOE_IMMUNE
Definition: SharedDefines.h:524
@ SPELL_ATTR3_ALWAYS_HIT
Definition: SharedDefines.h:511
@ SPELL_ATTR3_DOT_STACKING_RULE
Definition: SharedDefines.h:500
@ SPELL_ATTR3_NO_DAMAGE_HISTORY
Definition: SharedDefines.h:516
@ SPELL_ATTR3_NO_PROC_EQUIP_REQUIREMENT
Definition: SharedDefines.h:494
@ SPELL_ATTR3_HIDE_CHANNEL_BAR
Definition: SharedDefines.h:506
@ SPELL_ATTR3_NORMAL_RANGED_ATTACK
Definition: SharedDefines.h:508
@ SPELL_ATTR3_CAN_PROC_FROM_PROCS
Definition: SharedDefines.h:519
@ SPELL_ATTR3_PVP_ENABLING
Definition: SharedDefines.h:493
@ SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON
Definition: SharedDefines.h:503
@ SPELL_ATTR3_INSTANT_TARGET_PROCS
Definition: SharedDefines.h:512
@ SPELL_ATTR3_ONLY_PROC_OUTDOORS
Definition: SharedDefines.h:514
@ SPELL_ATTR3_HIDE_IN_RAID_FILTER
Definition: SharedDefines.h:507
@ SPELL_ATTR3_SUPPRESS_CASTER_PROCS
Definition: SharedDefines.h:509
@ SPELL_ATTR3_NO_AVOIDANCE
Definition: SharedDefines.h:499
@ SPELL_ATTR3_CASTING_CANCELS_AUTOREPEAT
Definition: SharedDefines.h:515
@ SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON
Definition: SharedDefines.h:517
@ SPELL_ATTR3_COMPLETELY_BLOCKED
Definition: SharedDefines.h:496
@ SPELL_ATTR3_IGNORE_CASTER_MODIFIERS
Definition: SharedDefines.h:522
@ SPELL_ATTR3_ONLY_ON_PLAYER
Definition: SharedDefines.h:501

References SPELL_ATTR3_ALLOW_AURA_WHILE_DEAD, SPELL_ATTR3_ALWAYS_HIT, SPELL_ATTR3_CAN_PROC_FROM_PROCS, SPELL_ATTR3_CASTING_CANCELS_AUTOREPEAT, SPELL_ATTR3_COMPLETELY_BLOCKED, SPELL_ATTR3_DO_NOT_DISPLAY_RANGE, SPELL_ATTR3_DOT_STACKING_RULE, SPELL_ATTR3_HIDE_CHANNEL_BAR, SPELL_ATTR3_HIDE_IN_RAID_FILTER, SPELL_ATTR3_IGNORE_CASTER_AND_TARGET_RESTRICTIONS, SPELL_ATTR3_IGNORE_CASTER_MODIFIERS, SPELL_ATTR3_INSTANT_TARGET_PROCS, SPELL_ATTR3_NO_AVOIDANCE, SPELL_ATTR3_NO_CASTING_BAR_TEXT, SPELL_ATTR3_NO_DAMAGE_HISTORY, SPELL_ATTR3_NO_DURABILITY_LOSS, SPELL_ATTR3_NO_PROC_EQUIP_REQUIREMENT, SPELL_ATTR3_NO_RES_TIMER, SPELL_ATTR3_NORMAL_RANGED_ATTACK, SPELL_ATTR3_NOT_A_PROC, SPELL_ATTR3_NOT_ON_AOE_IMMUNE, SPELL_ATTR3_ONLY_BATTLEGROUNDS, SPELL_ATTR3_ONLY_ON_GHOSTS, SPELL_ATTR3_ONLY_ON_PLAYER, SPELL_ATTR3_ONLY_PROC_ON_CASTER, SPELL_ATTR3_ONLY_PROC_OUTDOORS, SPELL_ATTR3_PVP_ENABLING, SPELL_ATTR3_REQUIRES_MAIN_HAND_WEAPON, SPELL_ATTR3_REQUIRES_OFF_HAND_WEAPON, SPELL_ATTR3_SUPPRESS_CASTER_PROCS, SPELL_ATTR3_SUPPRESS_TARGET_PROCS, and SPELL_ATTR3_TREAT_AS_PERIODIC.

◆ FromIndex() [24/32]

AC_API_EXPORT SpellAttr4 EnumUtils< SpellAttr4 >::FromIndex ( std::size_t  index)
718{
719 switch (index)
720 {
721 case 0: return SPELL_ATTR4_NO_CAST_LOG;
724 case 3: return SPELL_ATTR4_NO_HELPFUL_THREAT;
725 case 4: return SPELL_ATTR4_NO_HARMFUL_THREAT;
727 case 6: return SPELL_ATTR4_CANNOT_BE_STOLEN;
732 case 11: return SPELL_ATTR4_NO_PARTIAL_IMMUNITY;
733 case 12: return SPELL_ATTR4_AURA_IS_BUFF;
734 case 13: return SPELL_ATTR4_DO_NOT_LOG_CASTER;
735 case 14: return SPELL_ATTR4_REACTIVE_DAMAGE_PROC;
736 case 15: return SPELL_ATTR4_NOT_IN_SPELLBOOK;
739 case 18: return SPELL_ATTR4_BOUNCY_CHAIN_MISSILES;
741 case 20: return SPELL_ATTR4_AURA_NEVER_BOUNCES;
742 case 21: return SPELL_ATTR4_ALLOW_ENETRING_ARENA;
744 case 23: return SPELL_ATTR4_SUPPRESS_WEAPON_PROCS;
745 case 24: return SPELL_ATTR4_AUTO_RANGED_COMBAT;
746 case 25: return SPELL_ATTR4_OWNER_POWER_SCALING;
747 case 26: return SPELL_ATTR4_ONLY_FLYING_AREAS;
748 case 27: return SPELL_ATTR4_FORCE_DISPLAY_CASTBAR;
749 case 28: return SPELL_ATTR4_IGNORE_COMBAT_TIMERS;
751 case 30: return SPELL_ATTR4_OBSOLETE;
752 case 31: return SPELL_ATTR4_USE_FACING_FROM_SPELL;
753 default: throw std::out_of_range("index");
754 }
755}
@ SPELL_ATTR4_ONLY_FLYING_AREAS
Definition: SharedDefines.h:556
@ SPELL_ATTR4_BOUNCY_CHAIN_MISSILES
Definition: SharedDefines.h:548
@ SPELL_ATTR4_AURA_EXPIRES_OFFLINE
Definition: SharedDefines.h:532
@ SPELL_ATTR4_FORCE_DISPLAY_CASTBAR
Definition: SharedDefines.h:557
@ SPELL_ATTR4_ALLOW_CLIENT_TARGETING
Definition: SharedDefines.h:535
@ SPELL_ATTR4_IGNORE_DEFAULT_ARENA_RESTRICTIONS
Definition: SharedDefines.h:547
@ SPELL_ATTR4_OWNER_POWER_SCALING
Definition: SharedDefines.h:555
@ SPELL_ATTR4_SUPPRESS_WEAPON_PROCS
Definition: SharedDefines.h:553
@ SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING
Definition: SharedDefines.h:549
@ SPELL_ATTR4_ALLOW_ENETRING_ARENA
Definition: SharedDefines.h:551
@ SPELL_ATTR4_AUTO_RANGED_COMBAT
Definition: SharedDefines.h:554
@ SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET
Definition: SharedDefines.h:531
@ SPELL_ATTR4_NOT_IN_ARENA_OR_RATED_BATTLEGROUND
Definition: SharedDefines.h:546
@ SPELL_ATTR4_USE_FACING_FROM_SPELL
Definition: SharedDefines.h:561
@ SPELL_ATTR4_DO_NOT_LOG_CASTER
Definition: SharedDefines.h:543
@ SPELL_ATTR4_NO_HARMFUL_THREAT
Definition: SharedDefines.h:534
@ SPELL_ATTR4_NOT_IN_SPELLBOOK
Definition: SharedDefines.h:545
@ SPELL_ATTR4_AURA_NEVER_BOUNCES
Definition: SharedDefines.h:550
@ SPELL_ATTR4_COMBAT_FEEDBACK_WHEN_USABLE
Definition: SharedDefines.h:539
@ SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL
Definition: SharedDefines.h:559
@ SPELL_ATTR4_AURA_IS_BUFF
Definition: SharedDefines.h:542
@ SPELL_ATTR4_IGNORE_DAMAGE_TAKEN_MODIFIERS
Definition: SharedDefines.h:538
@ SPELL_ATTR4_NO_HELPFUL_THREAT
Definition: SharedDefines.h:533
@ SPELL_ATTR4_NO_CAST_LOG
Definition: SharedDefines.h:530
@ SPELL_ATTR4_ALLOW_CAST_WHILE_CASTING
Definition: SharedDefines.h:537
@ SPELL_ATTR4_NO_PARTIAL_IMMUNITY
Definition: SharedDefines.h:541
@ SPELL_ATTR4_WEAPON_SPEED_COST_SCALING
Definition: SharedDefines.h:540
@ SPELL_ATTR4_CANNOT_BE_STOLEN
Definition: SharedDefines.h:536
@ SPELL_ATTR4_REACTIVE_DAMAGE_PROC
Definition: SharedDefines.h:544
@ SPELL_ATTR4_IGNORE_COMBAT_TIMERS
Definition: SharedDefines.h:558
@ SPELL_ATTR4_OBSOLETE
Definition: SharedDefines.h:560
@ SPELL_ATTR4_PROC_SUPPRESS_SWING_ANIM
Definition: SharedDefines.h:552

References SPELL_ATTR4_ALLOW_CAST_WHILE_CASTING, SPELL_ATTR4_ALLOW_CLIENT_TARGETING, SPELL_ATTR4_ALLOW_ENETRING_ARENA, SPELL_ATTR4_ALLOW_PROC_WHILE_SITTING, SPELL_ATTR4_AURA_BOUNCE_FAILS_SPELL, SPELL_ATTR4_AURA_EXPIRES_OFFLINE, SPELL_ATTR4_AURA_IS_BUFF, SPELL_ATTR4_AURA_NEVER_BOUNCES, SPELL_ATTR4_AUTO_RANGED_COMBAT, SPELL_ATTR4_BOUNCY_CHAIN_MISSILES, SPELL_ATTR4_CANNOT_BE_STOLEN, SPELL_ATTR4_CLASS_TRIGGER_ONLY_ON_TARGET, SPELL_ATTR4_COMBAT_FEEDBACK_WHEN_USABLE, SPELL_ATTR4_DO_NOT_LOG_CASTER, SPELL_ATTR4_FORCE_DISPLAY_CASTBAR, SPELL_ATTR4_IGNORE_COMBAT_TIMERS, SPELL_ATTR4_IGNORE_DAMAGE_TAKEN_MODIFIERS, SPELL_ATTR4_IGNORE_DEFAULT_ARENA_RESTRICTIONS, SPELL_ATTR4_NO_CAST_LOG, SPELL_ATTR4_NO_HARMFUL_THREAT, SPELL_ATTR4_NO_HELPFUL_THREAT, SPELL_ATTR4_NO_PARTIAL_IMMUNITY, SPELL_ATTR4_NOT_IN_ARENA_OR_RATED_BATTLEGROUND, SPELL_ATTR4_NOT_IN_SPELLBOOK, SPELL_ATTR4_OBSOLETE, SPELL_ATTR4_ONLY_FLYING_AREAS, SPELL_ATTR4_OWNER_POWER_SCALING, SPELL_ATTR4_PROC_SUPPRESS_SWING_ANIM, SPELL_ATTR4_REACTIVE_DAMAGE_PROC, SPELL_ATTR4_SUPPRESS_WEAPON_PROCS, SPELL_ATTR4_USE_FACING_FROM_SPELL, and SPELL_ATTR4_WEAPON_SPEED_COST_SCALING.

◆ FromIndex() [25/32]

AC_API_EXPORT SpellAttr5 EnumUtils< SpellAttr5 >::FromIndex ( std::size_t  index)
847{
848 switch (index)
849 {
853 case 3: return SPELL_ATTR5_ALLOW_WHILE_STUNNED;
854 case 4: return SPELL_ATTR5_TRIGGERS_CHANNELING;
855 case 5: return SPELL_ATTR5_LIMIT_N;
857 case 7: return SPELL_ATTR5_NOT_ON_PLAYER;
861 case 11: return SPELL_ATTR5_IMPLIED_TARGETING;
862 case 12: return SPELL_ATTR5_MELEE_CHAIN_TARGETING;
865 case 15: return SPELL_ATTR5_TREAT_AS_AREA_EFFECT;
867 case 17: return SPELL_ATTR5_ALLOW_WHILE_FLEEING;
868 case 18: return SPELL_ATTR5_ALLOW_WHILE_CONFUSED;
869 case 19: return SPELL_ATTR5_AI_DOESNT_FACE_TARGET;
872 case 22: return SPELL_ATTR5_NOT_ON_TRIVIAL;
873 case 23: return SPELL_ATTR5_NO_PARTIAL_RESISTS;
875 case 25: return SPELL_ATTR5_ALWAYS_LINE_OF_SIGHT;
877 case 27: return SPELL_ATTR5_NO_CASTER_AURA_ICON;
878 case 28: return SPELL_ATTR5_NO_TARGET_AURA_ICON;
881 case 31: return SPELL_ATTR5_ADD_MELEE_HIT_RATING;
882 default: throw std::out_of_range("index");
883 }
884}
@ SPELL_ATTR5_ADD_MELEE_HIT_RATING
Definition: SharedDefines.h:598
@ SPELL_ATTR5_NOT_AVALIABLE_WHILE_CHARMED
Definition: SharedDefines.h:581
@ SPELL_ATTR5_AI_DOESNT_FACE_TARGET
Definition: SharedDefines.h:586
@ SPELL_ATTR5_EXTRA_INITIAL_PERIOD
Definition: SharedDefines.h:576
@ SPELL_ATTR5_DO_NOT_ATTEMPT_A_PET_RESUMMON_WHEN_DISMOUNTING
Definition: SharedDefines.h:587
@ SPELL_ATTR5_AURA_AFFECTS_NOT_JUST_REQ_EQUIPPED_ITEM
Definition: SharedDefines.h:583
@ SPELL_ATTR5_TREAT_AS_AREA_EFFECT
Definition: SharedDefines.h:582
@ SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK
Definition: SharedDefines.h:573
@ SPELL_ATTR5_ALLOW_WHILE_STUNNED
Definition: SharedDefines.h:570
@ SPELL_ATTR5_ALWAYS_SHOW_GROUND_TEXTURE
Definition: SharedDefines.h:597
@ SPELL_ATTR5_NO_TARGET_AURA_ICON
Definition: SharedDefines.h:595
@ SPELL_ATTR5_NOT_ON_TRIVIAL
Definition: SharedDefines.h:589
@ SPELL_ATTR5_DO_NOT_DISPLAY_DURATION
Definition: SharedDefines.h:577
@ SPELL_ATTR5_NO_PARTIAL_RESISTS
Definition: SharedDefines.h:590
@ SPELL_ATTR5_NO_CASTER_AURA_ICON
Definition: SharedDefines.h:594
@ SPELL_ATTR5_NOT_ON_PLAYER_CONTROLLED_NPC
Definition: SharedDefines.h:575
@ SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA
Definition: SharedDefines.h:568
@ SPELL_ATTR5_ALLOW_WHILE_FLEEING
Definition: SharedDefines.h:584
@ SPELL_ATTR5_IMPLIED_TARGETING
Definition: SharedDefines.h:578
@ SPELL_ATTR5_ALWAYS_LINE_OF_SIGHT
Definition: SharedDefines.h:592
@ SPELL_ATTR5_IGNORE_TARGET_REQUIREMENTS
Definition: SharedDefines.h:588
@ SPELL_ATTR5_SPELL_HASTE_AFFECTS_PERIODIC
Definition: SharedDefines.h:580
@ SPELL_ATTR5_MELEE_CHAIN_TARGETING
Definition: SharedDefines.h:579
@ SPELL_ATTR5_ALLOW_ACTION_DURING_CHANNEL
Definition: SharedDefines.h:567
@ SPELL_ATTR5_ALWAYS_AOE_LINE_OF_SIGHT
Definition: SharedDefines.h:593
@ SPELL_ATTR5_NOT_ON_PLAYER
Definition: SharedDefines.h:574
@ SPELL_ATTR5_AURA_UNIQUE_PER_CASTER
Definition: SharedDefines.h:596
@ SPELL_ATTR5_IGNORE_CASTER_REQUIREMENETS
Definition: SharedDefines.h:591
@ SPELL_ATTR5_LIMIT_N
Definition: SharedDefines.h:572
@ SPELL_ATTR5_ALLOW_WHILE_CONFUSED
Definition: SharedDefines.h:585
@ SPELL_ATTR5_REMOVE_ENTERING_ARENA
Definition: SharedDefines.h:569
@ SPELL_ATTR5_TRIGGERS_CHANNELING
Definition: SharedDefines.h:571

References SPELL_ATTR5_ADD_MELEE_HIT_RATING, SPELL_ATTR5_AI_DOESNT_FACE_TARGET, SPELL_ATTR5_ALLOW_ACTION_DURING_CHANNEL, SPELL_ATTR5_ALLOW_WHILE_CONFUSED, SPELL_ATTR5_ALLOW_WHILE_FLEEING, SPELL_ATTR5_ALLOW_WHILE_STUNNED, SPELL_ATTR5_ALWAYS_AOE_LINE_OF_SIGHT, SPELL_ATTR5_ALWAYS_LINE_OF_SIGHT, SPELL_ATTR5_ALWAYS_SHOW_GROUND_TEXTURE, SPELL_ATTR5_AURA_AFFECTS_NOT_JUST_REQ_EQUIPPED_ITEM, SPELL_ATTR5_AURA_UNIQUE_PER_CASTER, SPELL_ATTR5_DO_NOT_ATTEMPT_A_PET_RESUMMON_WHEN_DISMOUNTING, SPELL_ATTR5_DO_NOT_DISPLAY_DURATION, SPELL_ATTR5_EXTRA_INITIAL_PERIOD, SPELL_ATTR5_IGNORE_AREA_EFFECT_PVP_CHECK, SPELL_ATTR5_IGNORE_CASTER_REQUIREMENETS, SPELL_ATTR5_IGNORE_TARGET_REQUIREMENTS, SPELL_ATTR5_IMPLIED_TARGETING, SPELL_ATTR5_LIMIT_N, SPELL_ATTR5_MELEE_CHAIN_TARGETING, SPELL_ATTR5_NO_CASTER_AURA_ICON, SPELL_ATTR5_NO_PARTIAL_RESISTS, SPELL_ATTR5_NO_REAGENT_COST_WITH_AURA, SPELL_ATTR5_NO_TARGET_AURA_ICON, SPELL_ATTR5_NOT_AVALIABLE_WHILE_CHARMED, SPELL_ATTR5_NOT_ON_PLAYER, SPELL_ATTR5_NOT_ON_PLAYER_CONTROLLED_NPC, SPELL_ATTR5_NOT_ON_TRIVIAL, SPELL_ATTR5_REMOVE_ENTERING_ARENA, SPELL_ATTR5_SPELL_HASTE_AFFECTS_PERIODIC, SPELL_ATTR5_TREAT_AS_AREA_EFFECT, and SPELL_ATTR5_TRIGGERS_CHANNELING.

◆ FromIndex() [26/32]

AC_API_EXPORT SpellAttr6 EnumUtils< SpellAttr6 >::FromIndex ( std::size_t  index)
976{
977 switch (index)
978 {
981 case 2: return SPELL_ATTR6_NOT_AN_ATTACK;
986 case 7: return SPELL_ATTR6_AURA_IS_WEAPON_PROC;
989 case 10: return SPELL_ATTR6_NO_AURA_LOG;
990 case 11: return SPELL_ATTR6_NOT_IN_RAID_INSTANCES;
992 case 13: return SPELL_ATTR6_IGNORE_PHASE_SHIFT;
994 case 15: return SPELL_ATTR6_NO_PUSHBACK;
995 case 16: return SPELL_ATTR6_NO_JUMP_PATHING;
1002 case 23: return SPELL_ATTR6_TAPS_IMMEDIATELY;
1011 default: throw std::out_of_range("index");
1012 }
1013}
@ SPELL_ATTR6_NO_AURA_LOG
Definition: SharedDefines.h:614
@ SPELL_ATTR6_NO_PUSHBACK
Definition: SharedDefines.h:619
@ SPELL_ATTR6_DO_NOT_SELECT_TARGET_WITH_INITIATES_COMBAT
Definition: SharedDefines.h:632
@ SPELL_ATTR6_NO_JUMP_PATHING
Definition: SharedDefines.h:620
@ SPELL_ATTR6_CAN_TARGET_UNTARGETABLE
Definition: SharedDefines.h:628
@ SPELL_ATTR6_ALLOW_WHILE_RIDING_VEHICLE
Definition: SharedDefines.h:616
@ SPELL_ATTR6_ORIGINATE_FROM_CONTROLLER
Definition: SharedDefines.h:622
@ SPELL_ATTR6_DO_NOT_CHAIN_TO_CROWD_CONTROLLED_TARGETS
Definition: SharedDefines.h:612
@ SPELL_ATTR6_ALLOW_ON_CHARMED_TARGETS
Definition: SharedDefines.h:613
@ SPELL_ATTR6_AURA_ICON_ONLY_FOR_CASTER
Definition: SharedDefines.h:624
@ SPELL_ATTR6_SHOW_MECHANIC_AS_COMBAT_TEXT
Definition: SharedDefines.h:625
@ SPELL_ATTR6_IGNORE_HEALTH_MODIFIERS
Definition: SharedDefines.h:631
@ SPELL_ATTR6_IGNORE_CASTER_DAMAGE_MODIFIERS
Definition: SharedDefines.h:633
@ SPELL_ATTR6_IGNORE_PHASE_SHIFT
Definition: SharedDefines.h:617
@ SPELL_ATTR6_DOESNT_RESET_SWING_TIMER_IF_INSTANT
Definition: SharedDefines.h:629
@ SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES
Definition: SharedDefines.h:609
@ SPELL_ATTR6_ABSORB_CANNOT_BE_IGNORED
Definition: SharedDefines.h:626
@ SPELL_ATTR6_CAN_ASSIST_IMMUNE_PC
Definition: SharedDefines.h:607
@ SPELL_ATTR6_IGNORE_FOR_MOD_TIME_RATE
Definition: SharedDefines.h:608
@ SPELL_ATTR6_NOT_AN_ATTACK
Definition: SharedDefines.h:606
@ SPELL_ATTR6_AI_PRIMARY_RANGED_ATTACK
Definition: SharedDefines.h:618
@ SPELL_ATTR6_DO_NOT_RESET_COOLDOWN_IN_ARENA
Definition: SharedDefines.h:605
@ SPELL_ATTR6_DISABLE_TIED_EFFECT_POINTS
Definition: SharedDefines.h:634
@ SPELL_ATTR6_VEHICLE_IMMUNITY_CATEGORY
Definition: SharedDefines.h:630
@ SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS
Definition: SharedDefines.h:635
@ SPELL_ATTR6_NO_COOLDOWN_ON_TOOLTIP
Definition: SharedDefines.h:604
@ SPELL_ATTR6_FLOATING_COMBAT_TEXT_ON_CAST
Definition: SharedDefines.h:610
@ SPELL_ATTR6_ALLOW_EQUIP_WHILE_CASTING
Definition: SharedDefines.h:621
@ SPELL_ATTR6_AURA_IS_WEAPON_PROC
Definition: SharedDefines.h:611
@ SPELL_ATTR6_DELAY_COMBAT_TIMER_DURING_CAST
Definition: SharedDefines.h:623
@ SPELL_ATTR6_TAPS_IMMEDIATELY
Definition: SharedDefines.h:627
@ SPELL_ATTR6_NOT_IN_RAID_INSTANCES
Definition: SharedDefines.h:615

References SPELL_ATTR6_ABSORB_CANNOT_BE_IGNORED, SPELL_ATTR6_AI_PRIMARY_RANGED_ATTACK, SPELL_ATTR6_ALLOW_EQUIP_WHILE_CASTING, SPELL_ATTR6_ALLOW_ON_CHARMED_TARGETS, SPELL_ATTR6_ALLOW_WHILE_RIDING_VEHICLE, SPELL_ATTR6_AURA_ICON_ONLY_FOR_CASTER, SPELL_ATTR6_AURA_IS_WEAPON_PROC, SPELL_ATTR6_CAN_ASSIST_IMMUNE_PC, SPELL_ATTR6_CAN_TARGET_UNTARGETABLE, SPELL_ATTR6_DELAY_COMBAT_TIMER_DURING_CAST, SPELL_ATTR6_DISABLE_TIED_EFFECT_POINTS, SPELL_ATTR6_DO_NOT_CHAIN_TO_CROWD_CONTROLLED_TARGETS, SPELL_ATTR6_DO_NOT_CONSUME_RESOURCES, SPELL_ATTR6_DO_NOT_RESET_COOLDOWN_IN_ARENA, SPELL_ATTR6_DO_NOT_SELECT_TARGET_WITH_INITIATES_COMBAT, SPELL_ATTR6_DOESNT_RESET_SWING_TIMER_IF_INSTANT, SPELL_ATTR6_FLOATING_COMBAT_TEXT_ON_CAST, SPELL_ATTR6_IGNORE_CASTER_DAMAGE_MODIFIERS, SPELL_ATTR6_IGNORE_FOR_MOD_TIME_RATE, SPELL_ATTR6_IGNORE_HEALTH_MODIFIERS, SPELL_ATTR6_IGNORE_PHASE_SHIFT, SPELL_ATTR6_NO_AURA_LOG, SPELL_ATTR6_NO_CATEGORY_COOLDOWN_MODS, SPELL_ATTR6_NO_COOLDOWN_ON_TOOLTIP, SPELL_ATTR6_NO_JUMP_PATHING, SPELL_ATTR6_NO_PUSHBACK, SPELL_ATTR6_NOT_AN_ATTACK, SPELL_ATTR6_NOT_IN_RAID_INSTANCES, SPELL_ATTR6_ORIGINATE_FROM_CONTROLLER, SPELL_ATTR6_SHOW_MECHANIC_AS_COMBAT_TEXT, SPELL_ATTR6_TAPS_IMMEDIATELY, and SPELL_ATTR6_VEHICLE_IMMUNITY_CATEGORY.

◆ FromIndex() [27/32]

AC_API_EXPORT SpellAttr7 EnumUtils< SpellAttr7 >::FromIndex ( std::size_t  index)
1105{
1106 switch (index)
1107 {
1111 case 3: return SPELL_ATTR7_DEBUG_SPELL;
1112 case 4: return SPELL_ATTR7_TREAT_AS_RAID_BUFF;
1113 case 5: return SPELL_ATTR7_CAN_BE_MULTI_CAST;
1116 case 8: return SPELL_ATTR7_HORDE_SPECIFIC_SPELL;
1118 case 10: return SPELL_ATTR7_DISPEL_REMOVES_CHARGES;
1119 case 11: return SPELL_ATTR7_CAN_CAUSE_INTERRUPT;
1120 case 12: return SPELL_ATTR7_CAN_CAUSE_SILENCE;
1122 case 14: return SPELL_ATTR7_RECAST_ON_RESUMMON;
1125 case 17: return SPELL_ATTR7_DO_NOT_LOG_PVP_KILL;
1131 case 23: return SPELL_ATTR7_NO_ATTACK_DODGE;
1132 case 24: return SPELL_ATTR7_NO_ATTACK_PARRY;
1133 case 25: return SPELL_ATTR7_NO_ATTACK_MISS;
1134 case 26: return SPELL_ATTR7_TREAT_AS_NPC_AOE;
1139 case 31: return SPELL_ATTR7_ALWAYS_CAST_LOG;
1140 default: throw std::out_of_range("index");
1141 }
1142}
@ SPELL_ATTR7_REFLECTION_ONLY_DEFENDS
Definition: SharedDefines.h:670
@ SPELL_ATTR7_DONT_CAUSE_SPELL_PUSHBACK
Definition: SharedDefines.h:647
@ SPELL_ATTR7_ALWAYS_CAST_LOG
Definition: SharedDefines.h:672
@ SPELL_ATTR7_RECAST_ON_RESUMMON
Definition: SharedDefines.h:655
@ SPELL_ATTR7_CAN_CAUSE_INTERRUPT
Definition: SharedDefines.h:652
@ SPELL_ATTR7_ONLY_IN_SPELLBOOK_UNTIL_LEARNED
Definition: SharedDefines.h:657
@ SPELL_ATTR7_DO_NOT_LOG_PVP_KILL
Definition: SharedDefines.h:658
@ SPELL_ATTR7_CAN_PROC_FROM_SUPPRESSED_TARGET_PROCS
Definition: SharedDefines.h:671
@ SPELL_ATTR7_RETAIN_COOLDOWN_THROUGH_LOAD
Definition: SharedDefines.h:662
@ SPELL_ATTR7_PREPARE_FOR_VEHICLE_CONTROL_END
Definition: SharedDefines.h:648
@ SPELL_ATTR7_DISPEL_REMOVES_CHARGES
Definition: SharedDefines.h:651
@ SPELL_ATTR7_NO_ATTACK_PARRY
Definition: SharedDefines.h:665
@ SPELL_ATTR7_DO_NOT_COUNT_FOR_PVP_SCOREBOARD
Definition: SharedDefines.h:669
@ SPELL_ATTR7_CAN_BE_MULTI_CAST
Definition: SharedDefines.h:646
@ SPELL_ATTR7_HORDE_SPECIFIC_SPELL
Definition: SharedDefines.h:649
@ SPELL_ATTR7_IGNORES_COLD_WEATHER_FLYING_REQUIREMENT
Definition: SharedDefines.h:663
@ SPELL_ATTR7_NO_ATTACK_MISS
Definition: SharedDefines.h:666
@ SPELL_ATTR7_RESET_SWING_TIMER_AT_SPELL_START
Definition: SharedDefines.h:656
@ SPELL_ATTR7_ALLIANCE_SPECIFIC_SPELL
Definition: SharedDefines.h:650
@ SPELL_ATTR7_CAN_CAUSE_SILENCE
Definition: SharedDefines.h:653
@ SPELL_ATTR7_ALLOW_SPELL_REFLECTION
Definition: SharedDefines.h:641
@ SPELL_ATTR7_TREAT_AS_RAID_BUFF
Definition: SharedDefines.h:645
@ SPELL_ATTR7_NO_CLIENT_FAIL_WHILE_STUNNED_FLEEING_CONFUSED
Definition: SharedDefines.h:661
@ SPELL_ATTR7_TREAT_AS_NPC_AOE
Definition: SharedDefines.h:667
@ SPELL_ATTR7_NO_UI_NOT_INTERRUPTIBLE
Definition: SharedDefines.h:654
@ SPELL_ATTR7_REPORT_SPELL_FAILURE_TO_UNIT_TARGET
Definition: SharedDefines.h:660
@ SPELL_ATTR7_ATTACK_ON_CHARGE_TO_UNIT
Definition: SharedDefines.h:659
@ SPELL_ATTR7_NO_ATTACK_DODGE
Definition: SharedDefines.h:664
@ SPELL_ATTR7_DISABLE_AURA_WHILE_DEAD
Definition: SharedDefines.h:643
@ SPELL_ATTR7_DEBUG_SPELL
Definition: SharedDefines.h:644
@ SPELL_ATTR7_BYPASS_NO_RESURRECTION_AURA
Definition: SharedDefines.h:668
@ SPELL_ATTR7_NO_TARGET_DURATION_MOD
Definition: SharedDefines.h:642

References SPELL_ATTR7_ALLIANCE_SPECIFIC_SPELL, SPELL_ATTR7_ALLOW_SPELL_REFLECTION, SPELL_ATTR7_ALWAYS_CAST_LOG, SPELL_ATTR7_ATTACK_ON_CHARGE_TO_UNIT, SPELL_ATTR7_BYPASS_NO_RESURRECTION_AURA, SPELL_ATTR7_CAN_BE_MULTI_CAST, SPELL_ATTR7_CAN_CAUSE_INTERRUPT, SPELL_ATTR7_CAN_CAUSE_SILENCE, SPELL_ATTR7_CAN_PROC_FROM_SUPPRESSED_TARGET_PROCS, SPELL_ATTR7_DEBUG_SPELL, SPELL_ATTR7_DISABLE_AURA_WHILE_DEAD, SPELL_ATTR7_DISPEL_REMOVES_CHARGES, SPELL_ATTR7_DO_NOT_COUNT_FOR_PVP_SCOREBOARD, SPELL_ATTR7_DO_NOT_LOG_PVP_KILL, SPELL_ATTR7_DONT_CAUSE_SPELL_PUSHBACK, SPELL_ATTR7_HORDE_SPECIFIC_SPELL, SPELL_ATTR7_IGNORES_COLD_WEATHER_FLYING_REQUIREMENT, SPELL_ATTR7_NO_ATTACK_DODGE, SPELL_ATTR7_NO_ATTACK_MISS, SPELL_ATTR7_NO_ATTACK_PARRY, SPELL_ATTR7_NO_CLIENT_FAIL_WHILE_STUNNED_FLEEING_CONFUSED, SPELL_ATTR7_NO_TARGET_DURATION_MOD, SPELL_ATTR7_NO_UI_NOT_INTERRUPTIBLE, SPELL_ATTR7_ONLY_IN_SPELLBOOK_UNTIL_LEARNED, SPELL_ATTR7_PREPARE_FOR_VEHICLE_CONTROL_END, SPELL_ATTR7_RECAST_ON_RESUMMON, SPELL_ATTR7_REFLECTION_ONLY_DEFENDS, SPELL_ATTR7_REPORT_SPELL_FAILURE_TO_UNIT_TARGET, SPELL_ATTR7_RESET_SWING_TIMER_AT_SPELL_START, SPELL_ATTR7_RETAIN_COOLDOWN_THROUGH_LOAD, SPELL_ATTR7_TREAT_AS_NPC_AOE, and SPELL_ATTR7_TREAT_AS_RAID_BUFF.

◆ FromIndex() [28/32]

AC_API_EXPORT SpellCastResult EnumUtils< SpellCastResult >::FromIndex ( std::size_t  index)
1391{
1392 switch (index)
1393 {
1394 case 0: return SPELL_FAILED_SUCCESS;
1395 case 1: return SPELL_FAILED_AFFECTING_COMBAT;
1397 case 3: return SPELL_FAILED_ALREADY_AT_FULL_MANA;
1399 case 5: return SPELL_FAILED_ALREADY_BEING_TAMED;
1400 case 6: return SPELL_FAILED_ALREADY_HAVE_CHARM;
1401 case 7: return SPELL_FAILED_ALREADY_HAVE_SUMMON;
1402 case 8: return SPELL_FAILED_ALREADY_OPEN;
1403 case 9: return SPELL_FAILED_AURA_BOUNCED;
1404 case 10: return SPELL_FAILED_AUTOTRACK_INTERRUPTED;
1405 case 11: return SPELL_FAILED_BAD_IMPLICIT_TARGETS;
1406 case 12: return SPELL_FAILED_BAD_TARGETS;
1407 case 13: return SPELL_FAILED_CANT_BE_CHARMED;
1408 case 14: return SPELL_FAILED_CANT_BE_DISENCHANTED;
1410 case 16: return SPELL_FAILED_CANT_BE_MILLED;
1411 case 17: return SPELL_FAILED_CANT_BE_PROSPECTED;
1412 case 18: return SPELL_FAILED_CANT_CAST_ON_TAPPED;
1415 case 21: return SPELL_FAILED_CANT_STEALTH;
1416 case 22: return SPELL_FAILED_CASTER_AURASTATE;
1417 case 23: return SPELL_FAILED_CASTER_DEAD;
1418 case 24: return SPELL_FAILED_CHARMED;
1419 case 25: return SPELL_FAILED_CHEST_IN_USE;
1420 case 26: return SPELL_FAILED_CONFUSED;
1421 case 27: return SPELL_FAILED_DONT_REPORT;
1422 case 28: return SPELL_FAILED_EQUIPPED_ITEM;
1423 case 29: return SPELL_FAILED_EQUIPPED_ITEM_CLASS;
1426 case 32: return SPELL_FAILED_ERROR;
1427 case 33: return SPELL_FAILED_FIZZLE;
1428 case 34: return SPELL_FAILED_FLEEING;
1429 case 35: return SPELL_FAILED_FOOD_LOWLEVEL;
1430 case 36: return SPELL_FAILED_HIGHLEVEL;
1431 case 37: return SPELL_FAILED_HUNGER_SATIATED;
1432 case 38: return SPELL_FAILED_IMMUNE;
1433 case 39: return SPELL_FAILED_INCORRECT_AREA;
1434 case 40: return SPELL_FAILED_INTERRUPTED;
1435 case 41: return SPELL_FAILED_INTERRUPTED_COMBAT;
1437 case 43: return SPELL_FAILED_ITEM_GONE;
1438 case 44: return SPELL_FAILED_ITEM_NOT_FOUND;
1439 case 45: return SPELL_FAILED_ITEM_NOT_READY;
1440 case 46: return SPELL_FAILED_LEVEL_REQUIREMENT;
1441 case 47: return SPELL_FAILED_LINE_OF_SIGHT;
1442 case 48: return SPELL_FAILED_LOWLEVEL;
1443 case 49: return SPELL_FAILED_LOW_CASTLEVEL;
1444 case 50: return SPELL_FAILED_MAINHAND_EMPTY;
1445 case 51: return SPELL_FAILED_MOVING;
1446 case 52: return SPELL_FAILED_NEED_AMMO;
1447 case 53: return SPELL_FAILED_NEED_AMMO_POUCH;
1448 case 54: return SPELL_FAILED_NEED_EXOTIC_AMMO;
1449 case 55: return SPELL_FAILED_NEED_MORE_ITEMS;
1450 case 56: return SPELL_FAILED_NOPATH;
1451 case 57: return SPELL_FAILED_NOT_BEHIND;
1452 case 58: return SPELL_FAILED_NOT_FISHABLE;
1453 case 59: return SPELL_FAILED_NOT_FLYING;
1454 case 60: return SPELL_FAILED_NOT_HERE;
1455 case 61: return SPELL_FAILED_NOT_INFRONT;
1456 case 62: return SPELL_FAILED_NOT_IN_CONTROL;
1457 case 63: return SPELL_FAILED_NOT_KNOWN;
1458 case 64: return SPELL_FAILED_NOT_MOUNTED;
1459 case 65: return SPELL_FAILED_NOT_ON_TAXI;
1460 case 66: return SPELL_FAILED_NOT_ON_TRANSPORT;
1461 case 67: return SPELL_FAILED_NOT_READY;
1462 case 68: return SPELL_FAILED_NOT_SHAPESHIFT;
1463 case 69: return SPELL_FAILED_NOT_STANDING;
1464 case 70: return SPELL_FAILED_NOT_TRADEABLE;
1465 case 71: return SPELL_FAILED_NOT_TRADING;
1466 case 72: return SPELL_FAILED_NOT_UNSHEATHED;
1467 case 73: return SPELL_FAILED_NOT_WHILE_GHOST;
1468 case 74: return SPELL_FAILED_NOT_WHILE_LOOTING;
1469 case 75: return SPELL_FAILED_NO_AMMO;
1470 case 76: return SPELL_FAILED_NO_CHARGES_REMAIN;
1471 case 77: return SPELL_FAILED_NO_CHAMPION;
1472 case 78: return SPELL_FAILED_NO_COMBO_POINTS;
1473 case 79: return SPELL_FAILED_NO_DUELING;
1474 case 80: return SPELL_FAILED_NO_ENDURANCE;
1475 case 81: return SPELL_FAILED_NO_FISH;
1477 case 83: return SPELL_FAILED_NO_MOUNTS_ALLOWED;
1478 case 84: return SPELL_FAILED_NO_PET;
1479 case 85: return SPELL_FAILED_NO_POWER;
1480 case 86: return SPELL_FAILED_NOTHING_TO_DISPEL;
1481 case 87: return SPELL_FAILED_NOTHING_TO_STEAL;
1482 case 88: return SPELL_FAILED_ONLY_ABOVEWATER;
1483 case 89: return SPELL_FAILED_ONLY_DAYTIME;
1484 case 90: return SPELL_FAILED_ONLY_INDOORS;
1485 case 91: return SPELL_FAILED_ONLY_MOUNTED;
1486 case 92: return SPELL_FAILED_ONLY_NIGHTTIME;
1487 case 93: return SPELL_FAILED_ONLY_OUTDOORS;
1488 case 94: return SPELL_FAILED_ONLY_SHAPESHIFT;
1489 case 95: return SPELL_FAILED_ONLY_STEALTHED;
1490 case 96: return SPELL_FAILED_ONLY_UNDERWATER;
1491 case 97: return SPELL_FAILED_OUT_OF_RANGE;
1492 case 98: return SPELL_FAILED_PACIFIED;
1493 case 99: return SPELL_FAILED_POSSESSED;
1494 case 100: return SPELL_FAILED_REAGENTS;
1495 case 101: return SPELL_FAILED_REQUIRES_AREA;
1496 case 102: return SPELL_FAILED_REQUIRES_SPELL_FOCUS;
1497 case 103: return SPELL_FAILED_ROOTED;
1498 case 104: return SPELL_FAILED_SILENCED;
1499 case 105: return SPELL_FAILED_SPELL_IN_PROGRESS;
1500 case 106: return SPELL_FAILED_SPELL_LEARNED;
1501 case 107: return SPELL_FAILED_SPELL_UNAVAILABLE;
1502 case 108: return SPELL_FAILED_STUNNED;
1503 case 109: return SPELL_FAILED_TARGETS_DEAD;
1504 case 110: return SPELL_FAILED_TARGET_AFFECTING_COMBAT;
1505 case 111: return SPELL_FAILED_TARGET_AURASTATE;
1506 case 112: return SPELL_FAILED_TARGET_DUELING;
1507 case 113: return SPELL_FAILED_TARGET_ENEMY;
1508 case 114: return SPELL_FAILED_TARGET_ENRAGED;
1509 case 115: return SPELL_FAILED_TARGET_FRIENDLY;
1510 case 116: return SPELL_FAILED_TARGET_IN_COMBAT;
1511 case 117: return SPELL_FAILED_TARGET_IS_PLAYER;
1513 case 119: return SPELL_FAILED_TARGET_NOT_DEAD;
1514 case 120: return SPELL_FAILED_TARGET_NOT_IN_PARTY;
1515 case 121: return SPELL_FAILED_TARGET_NOT_LOOTED;
1516 case 122: return SPELL_FAILED_TARGET_NOT_PLAYER;
1517 case 123: return SPELL_FAILED_TARGET_NO_POCKETS;
1518 case 124: return SPELL_FAILED_TARGET_NO_WEAPONS;
1520 case 126: return SPELL_FAILED_TARGET_UNSKINNABLE;
1521 case 127: return SPELL_FAILED_THIRST_SATIATED;
1522 case 128: return SPELL_FAILED_TOO_CLOSE;
1523 case 129: return SPELL_FAILED_TOO_MANY_OF_ITEM;
1524 case 130: return SPELL_FAILED_TOTEM_CATEGORY;
1525 case 131: return SPELL_FAILED_TOTEMS;
1526 case 132: return SPELL_FAILED_TRY_AGAIN;
1527 case 133: return SPELL_FAILED_UNIT_NOT_BEHIND;
1528 case 134: return SPELL_FAILED_UNIT_NOT_INFRONT;
1529 case 135: return SPELL_FAILED_WRONG_PET_FOOD;
1530 case 136: return SPELL_FAILED_NOT_WHILE_FATIGUED;
1531 case 137: return SPELL_FAILED_TARGET_NOT_IN_INSTANCE;
1532 case 138: return SPELL_FAILED_NOT_WHILE_TRADING;
1533 case 139: return SPELL_FAILED_TARGET_NOT_IN_RAID;
1534 case 140: return SPELL_FAILED_TARGET_FREEFORALL;
1535 case 141: return SPELL_FAILED_NO_EDIBLE_CORPSES;
1536 case 142: return SPELL_FAILED_ONLY_BATTLEGROUNDS;
1537 case 143: return SPELL_FAILED_TARGET_NOT_GHOST;
1538 case 144: return SPELL_FAILED_TRANSFORM_UNUSABLE;
1539 case 145: return SPELL_FAILED_WRONG_WEATHER;
1540 case 146: return SPELL_FAILED_DAMAGE_IMMUNE;
1541 case 147: return SPELL_FAILED_PREVENTED_BY_MECHANIC;
1542 case 148: return SPELL_FAILED_PLAY_TIME;
1543 case 149: return SPELL_FAILED_REPUTATION;
1544 case 150: return SPELL_FAILED_MIN_SKILL;
1545 case 151: return SPELL_FAILED_NOT_IN_ARENA;
1546 case 152: return SPELL_FAILED_NOT_ON_SHAPESHIFT;
1547 case 153: return SPELL_FAILED_NOT_ON_STEALTHED;
1548 case 154: return SPELL_FAILED_NOT_ON_DAMAGE_IMMUNE;
1549 case 155: return SPELL_FAILED_NOT_ON_MOUNTED;
1550 case 156: return SPELL_FAILED_TOO_SHALLOW;
1551 case 157: return SPELL_FAILED_TARGET_NOT_IN_SANCTUARY;
1552 case 158: return SPELL_FAILED_TARGET_IS_TRIVIAL;
1553 case 159: return SPELL_FAILED_BM_OR_INVISGOD;
1556 case 162: return SPELL_FAILED_NOT_IDLE;
1557 case 163: return SPELL_FAILED_NOT_INACTIVE;
1558 case 164: return SPELL_FAILED_PARTIAL_PLAYTIME;
1559 case 165: return SPELL_FAILED_NO_PLAYTIME;
1560 case 166: return SPELL_FAILED_NOT_IN_BATTLEGROUND;
1561 case 167: return SPELL_FAILED_NOT_IN_RAID_INSTANCE;
1562 case 168: return SPELL_FAILED_ONLY_IN_ARENA;
1564 case 170: return SPELL_FAILED_ON_USE_ENCHANT;
1565 case 171: return SPELL_FAILED_NOT_ON_GROUND;
1566 case 172: return SPELL_FAILED_CUSTOM_ERROR;
1567 case 173: return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
1568 case 174: return SPELL_FAILED_TOO_MANY_SOCKETS;
1569 case 175: return SPELL_FAILED_INVALID_GLYPH;
1570 case 176: return SPELL_FAILED_UNIQUE_GLYPH;
1571 case 177: return SPELL_FAILED_GLYPH_SOCKET_LOCKED;
1572 case 178: return SPELL_FAILED_NO_VALID_TARGETS;
1573 case 179: return SPELL_FAILED_ITEM_AT_MAX_CHARGES;
1574 case 180: return SPELL_FAILED_NOT_IN_BARBERSHOP;
1575 case 181: return SPELL_FAILED_FISHING_TOO_LOW;
1577 case 183: return SPELL_FAILED_SUMMON_PENDING;
1578 case 184: return SPELL_FAILED_MAX_SOCKETS;
1579 case 185: return SPELL_FAILED_PET_CAN_RENAME;
1581 case 187: return SPELL_FAILED_UNKNOWN;
1582 case 188: return SPELL_CAST_OK;
1583 default: throw std::out_of_range("index");
1584 }
1585}
@ SPELL_FAILED_TARGET_NOT_LOOTED
Definition: SharedDefines.h:1070
@ SPELL_FAILED_HUNGER_SATIATED
Definition: SharedDefines.h:986
@ SPELL_FAILED_UNIT_NOT_INFRONT
Definition: SharedDefines.h:1083
@ SPELL_FAILED_TRANSFORM_UNUSABLE
Definition: SharedDefines.h:1093
@ SPELL_FAILED_NEED_EXOTIC_AMMO
Definition: SharedDefines.h:1003
@ SPELL_FAILED_NOT_INFRONT
Definition: SharedDefines.h:1010
@ SPELL_FAILED_MOVING
Definition: SharedDefines.h:1000
@ SPELL_FAILED_LEVEL_REQUIREMENT
Definition: SharedDefines.h:995
@ SPELL_FAILED_STUNNED
Definition: SharedDefines.h:1057
@ SPELL_FAILED_ALREADY_BEING_TAMED
Definition: SharedDefines.h:954
@ SPELL_FAILED_FISHING_TOO_LOW
Definition: SharedDefines.h:1130
@ SPELL_FAILED_CANT_BE_MILLED
Definition: SharedDefines.h:965
@ SPELL_FAILED_NOT_MOUNTED
Definition: SharedDefines.h:1013
@ SPELL_FAILED_NOT_ON_STEALTHED
Definition: SharedDefines.h:1102
@ SPELL_FAILED_EQUIPPED_ITEM_CLASS_OFFHAND
Definition: SharedDefines.h:980
@ SPELL_FAILED_AFFECTING_COMBAT
Definition: SharedDefines.h:950
@ SPELL_FAILED_CASTER_AURASTATE
Definition: SharedDefines.h:971
@ SPELL_FAILED_EQUIPPED_ITEM_CLASS
Definition: SharedDefines.h:978
@ SPELL_FAILED_TOO_CLOSE
Definition: SharedDefines.h:1077
@ SPELL_FAILED_ITEM_AT_MAX_CHARGES
Definition: SharedDefines.h:1128
@ SPELL_FAILED_TARGET_NOT_PLAYER
Definition: SharedDefines.h:1071
@ SPELL_FAILED_MIN_SKILL
Definition: SharedDefines.h:1099
@ SPELL_FAILED_NOTHING_TO_DISPEL
Definition: SharedDefines.h:1035
@ SPELL_FAILED_INTERRUPTED_COMBAT
Definition: SharedDefines.h:990
@ SPELL_FAILED_NO_POWER
Definition: SharedDefines.h:1034
@ SPELL_FAILED_NOT_KNOWN
Definition: SharedDefines.h:1012
@ SPELL_FAILED_NOT_UNSHEATHED
Definition: SharedDefines.h:1021
@ SPELL_FAILED_FOOD_LOWLEVEL
Definition: SharedDefines.h:984
@ SPELL_FAILED_NO_CHAMPION
Definition: SharedDefines.h:1026
@ SPELL_FAILED_NOT_HERE
Definition: SharedDefines.h:1009
@ SPELL_FAILED_NO_FISH
Definition: SharedDefines.h:1030
@ SPELL_FAILED_NOT_STANDING
Definition: SharedDefines.h:1018
@ SPELL_FAILED_ROOTED
Definition: SharedDefines.h:1052
@ SPELL_FAILED_TARGET_NOT_DEAD
Definition: SharedDefines.h:1068
@ SPELL_FAILED_CHEST_IN_USE
Definition: SharedDefines.h:974
@ SPELL_FAILED_TARGET_IN_COMBAT
Definition: SharedDefines.h:1065
@ SPELL_FAILED_WRONG_PET_FOOD
Definition: SharedDefines.h:1084
@ SPELL_FAILED_CUSTOM_ERROR
Definition: SharedDefines.h:1121
@ SPELL_FAILED_SUMMON_PENDING
Definition: SharedDefines.h:1132
@ SPELL_FAILED_ONLY_DAYTIME
Definition: SharedDefines.h:1038
@ SPELL_FAILED_NOT_FLYING
Definition: SharedDefines.h:1008
@ SPELL_FAILED_TARGET_FREEFORALL
Definition: SharedDefines.h:1089
@ SPELL_FAILED_UNKNOWN
Definition: SharedDefines.h:1136
@ SPELL_FAILED_DAMAGE_IMMUNE
Definition: SharedDefines.h:1095
@ SPELL_FAILED_BAD_IMPLICIT_TARGETS
Definition: SharedDefines.h:960
@ SPELL_FAILED_TARGET_IS_TRIVIAL
Definition: SharedDefines.h:1107
@ SPELL_FAILED_TRY_AGAIN
Definition: SharedDefines.h:1081
@ SPELL_FAILED_NO_ITEMS_WHILE_SHAPESHIFTED
Definition: SharedDefines.h:1031
@ SPELL_FAILED_NO_COMBO_POINTS
Definition: SharedDefines.h:1027
@ SPELL_FAILED_ALREADY_HAVE_SUMMON
Definition: SharedDefines.h:956
@ SPELL_FAILED_ALREADY_AT_FULL_POWER
Definition: SharedDefines.h:953
@ SPELL_FAILED_NOT_TRADEABLE
Definition: SharedDefines.h:1019
@ SPELL_FAILED_ALREADY_OPEN
Definition: SharedDefines.h:957
@ SPELL_FAILED_ITEM_NOT_READY
Definition: SharedDefines.h:994
@ SPELL_FAILED_WRONG_WEATHER
Definition: SharedDefines.h:1094
@ SPELL_FAILED_TOO_SHALLOW
Definition: SharedDefines.h:1105
@ SPELL_FAILED_NOT_TRADING
Definition: SharedDefines.h:1020
@ SPELL_FAILED_NO_CHARGES_REMAIN
Definition: SharedDefines.h:1025
@ SPELL_FAILED_ITEM_GONE
Definition: SharedDefines.h:992
@ SPELL_FAILED_TARGET_NO_POCKETS
Definition: SharedDefines.h:1072
@ SPELL_FAILED_NOTHING_TO_STEAL
Definition: SharedDefines.h:1036
@ SPELL_FAILED_NEED_AMMO
Definition: SharedDefines.h:1001
@ SPELL_FAILED_NO_AMMO
Definition: SharedDefines.h:1024
@ SPELL_FAILED_INCORRECT_AREA
Definition: SharedDefines.h:988
@ SPELL_FAILED_PLAY_TIME
Definition: SharedDefines.h:1097
@ SPELL_FAILED_NO_MOUNTS_ALLOWED
Definition: SharedDefines.h:1032
@ SPELL_FAILED_ITEM_NOT_FOUND
Definition: SharedDefines.h:993
@ SPELL_FAILED_GLYPH_SOCKET_LOCKED
Definition: SharedDefines.h:1126
@ SPELL_FAILED_TARGET_IS_PLAYER
Definition: SharedDefines.h:1066
@ SPELL_FAILED_OUT_OF_RANGE
Definition: SharedDefines.h:1046
@ SPELL_FAILED_NOT_IN_BATTLEGROUND
Definition: SharedDefines.h:1115
@ SPELL_FAILED_NOT_IN_BARBERSHOP
Definition: SharedDefines.h:1129
@ SPELL_FAILED_NOT_ON_SHAPESHIFT
Definition: SharedDefines.h:1101
@ SPELL_FAILED_NOT_FISHABLE
Definition: SharedDefines.h:1007
@ SPELL_FAILED_IMMUNE
Definition: SharedDefines.h:987
@ SPELL_FAILED_EQUIPPED_ITEM
Definition: SharedDefines.h:977
@ SPELL_FAILED_TARGET_DUELING
Definition: SharedDefines.h:1061
@ SPELL_FAILED_CANT_DUEL_WHILE_STEALTHED
Definition: SharedDefines.h:969
@ SPELL_FAILED_NOT_BEHIND
Definition: SharedDefines.h:1006
@ SPELL_FAILED_ALREADY_AT_FULL_HEALTH
Definition: SharedDefines.h:951
@ SPELL_FAILED_PREVENTED_BY_MECHANIC
Definition: SharedDefines.h:1096
@ SPELL_FAILED_SPELL_LEARNED
Definition: SharedDefines.h:1055
@ SPELL_FAILED_NOT_ON_GROUND
Definition: SharedDefines.h:1120
@ SPELL_FAILED_ALREADY_HAVE_CHARM
Definition: SharedDefines.h:955
@ SPELL_FAILED_TARGET_NOT_IN_INSTANCE
Definition: SharedDefines.h:1086
@ SPELL_FAILED_TARGET_ENEMY
Definition: SharedDefines.h:1062
@ SPELL_FAILED_HIGHLEVEL
Definition: SharedDefines.h:985
@ SPELL_FAILED_DONT_REPORT
Definition: SharedDefines.h:976
@ SPELL_FAILED_THIRST_SATIATED
Definition: SharedDefines.h:1076
@ SPELL_FAILED_NOT_ON_DAMAGE_IMMUNE
Definition: SharedDefines.h:1103
@ SPELL_FAILED_CANT_CAST_ON_TAPPED
Definition: SharedDefines.h:967
@ SPELL_FAILED_ON_USE_ENCHANT
Definition: SharedDefines.h:1119
@ SPELL_FAILED_PET_CAN_RENAME
Definition: SharedDefines.h:1134
@ SPELL_FAILED_NOT_WHILE_LOOTING
Definition: SharedDefines.h:1023
@ SPELL_FAILED_TARGET_AURASTATE
Definition: SharedDefines.h:1060
@ SPELL_FAILED_TOTEMS
Definition: SharedDefines.h:1080
@ SPELL_FAILED_NOT_IN_RAID_INSTANCE
Definition: SharedDefines.h:1116
@ SPELL_FAILED_ERROR
Definition: SharedDefines.h:981
@ SPELL_FAILED_TARGET_NOT_IN_RAID
Definition: SharedDefines.h:1088
@ SPELL_FAILED_SUCCESS
Definition: SharedDefines.h:949
@ SPELL_FAILED_LOWLEVEL
Definition: SharedDefines.h:997
@ SPELL_FAILED_NOT_READY
Definition: SharedDefines.h:1016
@ SPELL_FAILED_ONLY_BATTLEGROUNDS
Definition: SharedDefines.h:1091
@ SPELL_FAILED_NO_ENDURANCE
Definition: SharedDefines.h:1029
@ SPELL_FAILED_NOT_IN_ARENA
Definition: SharedDefines.h:1100
@ SPELL_FAILED_NEED_AMMO_POUCH
Definition: SharedDefines.h:1002
@ SPELL_FAILED_ITEM_ALREADY_ENCHANTED
Definition: SharedDefines.h:991
@ SPELL_FAILED_ONLY_IN_ARENA
Definition: SharedDefines.h:1117
@ SPELL_FAILED_ONLY_STEALTHED
Definition: SharedDefines.h:1044
@ SPELL_FAILED_CANT_BE_DISENCHANTED_SKILL
Definition: SharedDefines.h:964
@ SPELL_FAILED_BM_OR_INVISGOD
Definition: SharedDefines.h:1108
@ SPELL_FAILED_CANT_DUEL_WHILE_INVISIBLE
Definition: SharedDefines.h:968
@ SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW
Definition: SharedDefines.h:1122
@ SPELL_FAILED_ONLY_SHAPESHIFT
Definition: SharedDefines.h:1043
@ SPELL_FAILED_NOT_WHILE_FATIGUED
Definition: SharedDefines.h:1085
@ SPELL_FAILED_TARGET_IS_PLAYER_CONTROLLED
Definition: SharedDefines.h:1067
@ SPELL_FAILED_REAGENTS
Definition: SharedDefines.h:1049
@ SPELL_FAILED_ONLY_ABOVEWATER
Definition: SharedDefines.h:1037
@ SPELL_FAILED_TARGETS_DEAD
Definition: SharedDefines.h:1058
@ SPELL_FAILED_AURA_BOUNCED
Definition: SharedDefines.h:958
@ SPELL_FAILED_UNIT_NOT_BEHIND
Definition: SharedDefines.h:1082
@ SPELL_FAILED_CANT_BE_CHARMED
Definition: SharedDefines.h:962
@ SPELL_FAILED_MAX_SOCKETS
Definition: SharedDefines.h:1133
@ SPELL_FAILED_TARGET_NOT_GHOST
Definition: SharedDefines.h:1092
@ SPELL_FAILED_CASTER_DEAD
Definition: SharedDefines.h:972
@ SPELL_FAILED_NOT_ON_MOUNTED
Definition: SharedDefines.h:1104
@ SPELL_FAILED_NO_DUELING
Definition: SharedDefines.h:1028
@ SPELL_FAILED_ONLY_UNDERWATER
Definition: SharedDefines.h:1045
@ SPELL_FAILED_BAD_TARGETS
Definition: SharedDefines.h:961
@ SPELL_FAILED_CANT_BE_DISENCHANTED
Definition: SharedDefines.h:963
@ SPELL_FAILED_TARGET_ENRAGED
Definition: SharedDefines.h:1063
@ SPELL_FAILED_ITEM_ENCHANT_TRADE_WINDOW
Definition: SharedDefines.h:1131
@ SPELL_FAILED_ONLY_NIGHTTIME
Definition: SharedDefines.h:1041
@ SPELL_FAILED_TARGET_CANNOT_BE_RESURRECTED
Definition: SharedDefines.h:1135
@ SPELL_FAILED_TOO_MANY_OF_ITEM
Definition: SharedDefines.h:1078
@ SPELL_FAILED_FIZZLE
Definition: SharedDefines.h:982
@ SPELL_FAILED_CONFUSED
Definition: SharedDefines.h:975
@ SPELL_FAILED_REPUTATION
Definition: SharedDefines.h:1098
@ SPELL_FAILED_ARTISAN_RIDING_REQUIREMENT
Definition: SharedDefines.h:1110
@ SPELL_FAILED_TARGET_UNSKINNABLE
Definition: SharedDefines.h:1075
@ SPELL_FAILED_SILENCED
Definition: SharedDefines.h:1053
@ SPELL_FAILED_NOT_SHAPESHIFT
Definition: SharedDefines.h:1017
@ SPELL_FAILED_AUTOTRACK_INTERRUPTED
Definition: SharedDefines.h:959
@ SPELL_FAILED_NOT_WHILE_TRADING
Definition: SharedDefines.h:1087
@ SPELL_FAILED_NO_PLAYTIME
Definition: SharedDefines.h:1114
@ SPELL_FAILED_UNIQUE_GLYPH
Definition: SharedDefines.h:1125
@ SPELL_FAILED_POSSESSED
Definition: SharedDefines.h:1048
@ SPELL_FAILED_NEED_MORE_ITEMS
Definition: SharedDefines.h:1004
@ SPELL_FAILED_TARGET_NO_WEAPONS
Definition: SharedDefines.h:1073
@ SPELL_FAILED_ONLY_OUTDOORS
Definition: SharedDefines.h:1042
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
@ SPELL_FAILED_NO_VALID_TARGETS
Definition: SharedDefines.h:1127
@ SPELL_FAILED_CHARMED
Definition: SharedDefines.h:973
@ SPELL_FAILED_INVALID_GLYPH
Definition: SharedDefines.h:1124
@ SPELL_FAILED_PARTIAL_PLAYTIME
Definition: SharedDefines.h:1113
@ SPELL_FAILED_LOW_CASTLEVEL
Definition: SharedDefines.h:998
@ SPELL_FAILED_TARGET_NO_RANGED_WEAPONS
Definition: SharedDefines.h:1074
@ SPELL_FAILED_CANT_BE_PROSPECTED
Definition: SharedDefines.h:966
@ SPELL_FAILED_ONLY_MOUNTED
Definition: SharedDefines.h:1040
@ SPELL_FAILED_NOT_ON_TRANSPORT
Definition: SharedDefines.h:1015
@ SPELL_FAILED_LINE_OF_SIGHT
Definition: SharedDefines.h:996
@ SPELL_FAILED_NOT_IN_CONTROL
Definition: SharedDefines.h:1011
@ SPELL_FAILED_FLEEING
Definition: SharedDefines.h:983
@ SPELL_FAILED_PACIFIED
Definition: SharedDefines.h:1047
@ SPELL_FAILED_CANT_STEALTH
Definition: SharedDefines.h:970
@ SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND
Definition: SharedDefines.h:979
@ SPELL_FAILED_SPELL_IN_PROGRESS
Definition: SharedDefines.h:1054
@ SPELL_FAILED_NO_PET
Definition: SharedDefines.h:1033
@ SPELL_FAILED_MAINHAND_EMPTY
Definition: SharedDefines.h:999
@ SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE
Definition: SharedDefines.h:1118
@ SPELL_FAILED_EXPERT_RIDING_REQUIREMENT
Definition: SharedDefines.h:1109
@ SPELL_FAILED_ALREADY_AT_FULL_MANA
Definition: SharedDefines.h:952
@ SPELL_FAILED_REQUIRES_SPELL_FOCUS
Definition: SharedDefines.h:1051
@ SPELL_FAILED_NOPATH
Definition: SharedDefines.h:1005
@ SPELL_FAILED_TOTEM_CATEGORY
Definition: SharedDefines.h:1079
@ SPELL_FAILED_NOT_IDLE
Definition: SharedDefines.h:1111
@ SPELL_FAILED_SPELL_UNAVAILABLE
Definition: SharedDefines.h:1056
@ SPELL_FAILED_REQUIRES_AREA
Definition: SharedDefines.h:1050
@ SPELL_FAILED_TARGET_NOT_IN_SANCTUARY
Definition: SharedDefines.h:1106
@ SPELL_FAILED_NOT_INACTIVE
Definition: SharedDefines.h:1112
@ SPELL_FAILED_NOT_WHILE_GHOST
Definition: SharedDefines.h:1022
@ SPELL_FAILED_TOO_MANY_SOCKETS
Definition: SharedDefines.h:1123
@ SPELL_FAILED_NO_EDIBLE_CORPSES
Definition: SharedDefines.h:1090
@ SPELL_FAILED_INTERRUPTED
Definition: SharedDefines.h:989
@ SPELL_FAILED_TARGET_NOT_IN_PARTY
Definition: SharedDefines.h:1069
@ SPELL_FAILED_TARGET_AFFECTING_COMBAT
Definition: SharedDefines.h:1059
@ SPELL_FAILED_ONLY_INDOORS
Definition: SharedDefines.h:1039
@ SPELL_FAILED_NOT_ON_TAXI
Definition: SharedDefines.h:1014
@ SPELL_FAILED_TARGET_FRIENDLY
Definition: SharedDefines.h:1064

References SPELL_CAST_OK, SPELL_FAILED_AFFECTING_COMBAT, SPELL_FAILED_ALREADY_AT_FULL_HEALTH, SPELL_FAILED_ALREADY_AT_FULL_MANA, SPELL_FAILED_ALREADY_AT_FULL_POWER, SPELL_FAILED_ALREADY_BEING_TAMED, SPELL_FAILED_ALREADY_HAVE_CHARM, SPELL_FAILED_ALREADY_HAVE_SUMMON, SPELL_FAILED_ALREADY_OPEN, SPELL_FAILED_ARTISAN_RIDING_REQUIREMENT, SPELL_FAILED_AURA_BOUNCED, SPELL_FAILED_AUTOTRACK_INTERRUPTED, SPELL_FAILED_BAD_IMPLICIT_TARGETS, SPELL_FAILED_BAD_TARGETS, SPELL_FAILED_BM_OR_INVISGOD, SPELL_FAILED_CANT_BE_CHARMED, SPELL_FAILED_CANT_BE_DISENCHANTED, SPELL_FAILED_CANT_BE_DISENCHANTED_SKILL, SPELL_FAILED_CANT_BE_MILLED, SPELL_FAILED_CANT_BE_PROSPECTED, SPELL_FAILED_CANT_CAST_ON_TAPPED, SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW, SPELL_FAILED_CANT_DUEL_WHILE_INVISIBLE, SPELL_FAILED_CANT_DUEL_WHILE_STEALTHED, SPELL_FAILED_CANT_STEALTH, SPELL_FAILED_CASTER_AURASTATE, SPELL_FAILED_CASTER_DEAD, SPELL_FAILED_CHARMED, SPELL_FAILED_CHEST_IN_USE, SPELL_FAILED_CONFUSED, SPELL_FAILED_CUSTOM_ERROR, SPELL_FAILED_DAMAGE_IMMUNE, SPELL_FAILED_DONT_REPORT, SPELL_FAILED_EQUIPPED_ITEM, SPELL_FAILED_EQUIPPED_ITEM_CLASS, SPELL_FAILED_EQUIPPED_ITEM_CLASS_MAINHAND, SPELL_FAILED_EQUIPPED_ITEM_CLASS_OFFHAND, SPELL_FAILED_ERROR, SPELL_FAILED_EXPERT_RIDING_REQUIREMENT, SPELL_FAILED_FISHING_TOO_LOW, SPELL_FAILED_FIZZLE, SPELL_FAILED_FLEEING, SPELL_FAILED_FOOD_LOWLEVEL, SPELL_FAILED_GLYPH_SOCKET_LOCKED, SPELL_FAILED_HIGHLEVEL, SPELL_FAILED_HUNGER_SATIATED, SPELL_FAILED_IMMUNE, SPELL_FAILED_INCORRECT_AREA, SPELL_FAILED_INTERRUPTED, SPELL_FAILED_INTERRUPTED_COMBAT, SPELL_FAILED_INVALID_GLYPH, SPELL_FAILED_ITEM_ALREADY_ENCHANTED, SPELL_FAILED_ITEM_AT_MAX_CHARGES, SPELL_FAILED_ITEM_ENCHANT_TRADE_WINDOW, SPELL_FAILED_ITEM_GONE, SPELL_FAILED_ITEM_NOT_FOUND, SPELL_FAILED_ITEM_NOT_READY, SPELL_FAILED_LEVEL_REQUIREMENT, SPELL_FAILED_LINE_OF_SIGHT, SPELL_FAILED_LOW_CASTLEVEL, SPELL_FAILED_LOWLEVEL, SPELL_FAILED_MAINHAND_EMPTY, SPELL_FAILED_MAX_SOCKETS, SPELL_FAILED_MIN_SKILL, SPELL_FAILED_MOVING, SPELL_FAILED_NEED_AMMO, SPELL_FAILED_NEED_AMMO_POUCH, SPELL_FAILED_NEED_EXOTIC_AMMO, SPELL_FAILED_NEED_MORE_ITEMS, SPELL_FAILED_NO_AMMO, SPELL_FAILED_NO_CHAMPION, SPELL_FAILED_NO_CHARGES_REMAIN, SPELL_FAILED_NO_COMBO_POINTS, SPELL_FAILED_NO_DUELING, SPELL_FAILED_NO_EDIBLE_CORPSES, SPELL_FAILED_NO_ENDURANCE, SPELL_FAILED_NO_FISH, SPELL_FAILED_NO_ITEMS_WHILE_SHAPESHIFTED, SPELL_FAILED_NO_MOUNTS_ALLOWED, SPELL_FAILED_NO_PET, SPELL_FAILED_NO_PLAYTIME, SPELL_FAILED_NO_POWER, SPELL_FAILED_NO_VALID_TARGETS, SPELL_FAILED_NOPATH, SPELL_FAILED_NOT_BEHIND, SPELL_FAILED_NOT_FISHABLE, SPELL_FAILED_NOT_FLYING, SPELL_FAILED_NOT_HERE, SPELL_FAILED_NOT_IDLE, SPELL_FAILED_NOT_IN_ARENA, SPELL_FAILED_NOT_IN_BARBERSHOP, SPELL_FAILED_NOT_IN_BATTLEGROUND, SPELL_FAILED_NOT_IN_CONTROL, SPELL_FAILED_NOT_IN_RAID_INSTANCE, SPELL_FAILED_NOT_INACTIVE, SPELL_FAILED_NOT_INFRONT, SPELL_FAILED_NOT_KNOWN, SPELL_FAILED_NOT_MOUNTED, SPELL_FAILED_NOT_ON_DAMAGE_IMMUNE, SPELL_FAILED_NOT_ON_GROUND, SPELL_FAILED_NOT_ON_MOUNTED, SPELL_FAILED_NOT_ON_SHAPESHIFT, SPELL_FAILED_NOT_ON_STEALTHED, SPELL_FAILED_NOT_ON_TAXI, SPELL_FAILED_NOT_ON_TRANSPORT, SPELL_FAILED_NOT_READY, SPELL_FAILED_NOT_SHAPESHIFT, SPELL_FAILED_NOT_STANDING, SPELL_FAILED_NOT_TRADEABLE, SPELL_FAILED_NOT_TRADING, SPELL_FAILED_NOT_UNSHEATHED, SPELL_FAILED_NOT_WHILE_FATIGUED, SPELL_FAILED_NOT_WHILE_GHOST, SPELL_FAILED_NOT_WHILE_LOOTING, SPELL_FAILED_NOT_WHILE_TRADING, SPELL_FAILED_NOTHING_TO_DISPEL, SPELL_FAILED_NOTHING_TO_STEAL, SPELL_FAILED_ON_USE_ENCHANT, SPELL_FAILED_ONLY_ABOVEWATER, SPELL_FAILED_ONLY_BATTLEGROUNDS, SPELL_FAILED_ONLY_DAYTIME, SPELL_FAILED_ONLY_IN_ARENA, SPELL_FAILED_ONLY_INDOORS, SPELL_FAILED_ONLY_MOUNTED, SPELL_FAILED_ONLY_NIGHTTIME, SPELL_FAILED_ONLY_OUTDOORS, SPELL_FAILED_ONLY_SHAPESHIFT, SPELL_FAILED_ONLY_STEALTHED, SPELL_FAILED_ONLY_UNDERWATER, SPELL_FAILED_OUT_OF_RANGE, SPELL_FAILED_PACIFIED, SPELL_FAILED_PARTIAL_PLAYTIME, SPELL_FAILED_PET_CAN_RENAME, SPELL_FAILED_PLAY_TIME, SPELL_FAILED_POSSESSED, SPELL_FAILED_PREVENTED_BY_MECHANIC, SPELL_FAILED_REAGENTS, SPELL_FAILED_REPUTATION, SPELL_FAILED_REQUIRES_AREA, SPELL_FAILED_REQUIRES_SPELL_FOCUS, SPELL_FAILED_ROOTED, SPELL_FAILED_SILENCED, SPELL_FAILED_SPELL_IN_PROGRESS, SPELL_FAILED_SPELL_LEARNED, SPELL_FAILED_SPELL_UNAVAILABLE, SPELL_FAILED_STUNNED, SPELL_FAILED_SUCCESS, SPELL_FAILED_SUMMON_PENDING, SPELL_FAILED_TARGET_AFFECTING_COMBAT, SPELL_FAILED_TARGET_AURASTATE, SPELL_FAILED_TARGET_CANNOT_BE_RESURRECTED, SPELL_FAILED_TARGET_DUELING, SPELL_FAILED_TARGET_ENEMY, SPELL_FAILED_TARGET_ENRAGED, SPELL_FAILED_TARGET_FREEFORALL, SPELL_FAILED_TARGET_FRIENDLY, SPELL_FAILED_TARGET_IN_COMBAT, SPELL_FAILED_TARGET_IS_PLAYER, SPELL_FAILED_TARGET_IS_PLAYER_CONTROLLED, SPELL_FAILED_TARGET_IS_TRIVIAL, SPELL_FAILED_TARGET_LOCKED_TO_RAID_INSTANCE, SPELL_FAILED_TARGET_NO_POCKETS, SPELL_FAILED_TARGET_NO_RANGED_WEAPONS, SPELL_FAILED_TARGET_NO_WEAPONS, SPELL_FAILED_TARGET_NOT_DEAD, SPELL_FAILED_TARGET_NOT_GHOST, SPELL_FAILED_TARGET_NOT_IN_INSTANCE, SPELL_FAILED_TARGET_NOT_IN_PARTY, SPELL_FAILED_TARGET_NOT_IN_RAID, SPELL_FAILED_TARGET_NOT_IN_SANCTUARY, SPELL_FAILED_TARGET_NOT_LOOTED, SPELL_FAILED_TARGET_NOT_PLAYER, SPELL_FAILED_TARGET_UNSKINNABLE, SPELL_FAILED_TARGETS_DEAD, SPELL_FAILED_THIRST_SATIATED, SPELL_FAILED_TOO_CLOSE, SPELL_FAILED_TOO_MANY_OF_ITEM, SPELL_FAILED_TOO_MANY_SOCKETS, SPELL_FAILED_TOO_SHALLOW, SPELL_FAILED_TOTEM_CATEGORY, SPELL_FAILED_TOTEMS, SPELL_FAILED_TRANSFORM_UNUSABLE, SPELL_FAILED_TRY_AGAIN, SPELL_FAILED_UNIQUE_GLYPH, SPELL_FAILED_UNIT_NOT_BEHIND, SPELL_FAILED_UNIT_NOT_INFRONT, SPELL_FAILED_UNKNOWN, SPELL_FAILED_WRONG_PET_FOOD, and SPELL_FAILED_WRONG_WEATHER.

◆ FromIndex() [29/32]

AC_API_EXPORT AuraStateType EnumUtils< AuraStateType >::FromIndex ( std::size_t  index)
1820{
1821 switch (index)
1822 {
1823 case 0: return AURA_STATE_NONE;
1824 case 1: return AURA_STATE_DEFENSE;
1825 case 2: return AURA_STATE_HEALTHLESS_20_PERCENT;
1826 case 3: return AURA_STATE_BERSERKING;
1827 case 4: return AURA_STATE_FROZEN;
1828 case 5: return AURA_STATE_JUDGEMENT;
1829 case 6: return AURA_STATE_HUNTER_PARRY;
1830 case 7: return AURA_STATE_WARRIOR_VICTORY_RUSH;
1831 case 8: return AURA_STATE_FAERIE_FIRE;
1832 case 9: return AURA_STATE_HEALTHLESS_35_PERCENT;
1833 case 10: return AURA_STATE_CONFLAGRATE;
1834 case 11: return AURA_STATE_SWIFTMEND;
1835 case 12: return AURA_STATE_DEADLY_POISON;
1836 case 13: return AURA_STATE_ENRAGE;
1837 case 14: return AURA_STATE_BLEEDING;
1838 case 15: return AURA_STATE_UNKNOWN19;
1839 case 16: return AURA_STATE_UNKNOWN22;
1840 case 17: return AURA_STATE_HEALTH_ABOVE_75_PERCENT;
1841 default: throw std::out_of_range("index");
1842 }
1843}
@ AURA_STATE_DEFENSE
Definition: SharedDefines.h:1292
@ AURA_STATE_NONE
Definition: SharedDefines.h:1291
@ AURA_STATE_FROZEN
Definition: SharedDefines.h:1295
@ AURA_STATE_BERSERKING
Definition: SharedDefines.h:1294
@ AURA_STATE_UNKNOWN19
Definition: SharedDefines.h:1311
@ AURA_STATE_DEADLY_POISON
Definition: SharedDefines.h:1308
@ AURA_STATE_BLEEDING
Definition: SharedDefines.h:1310
@ AURA_STATE_FAERIE_FIRE
Definition: SharedDefines.h:1304
@ AURA_STATE_ENRAGE
Definition: SharedDefines.h:1309
@ AURA_STATE_WARRIOR_VICTORY_RUSH
Definition: SharedDefines.h:1302
@ AURA_STATE_UNKNOWN22
Definition: SharedDefines.h:1314
@ AURA_STATE_JUDGEMENT
Definition: SharedDefines.h:1296
@ AURA_STATE_HEALTHLESS_35_PERCENT
Definition: SharedDefines.h:1305
@ AURA_STATE_SWIFTMEND
Definition: SharedDefines.h:1307
@ AURA_STATE_HEALTH_ABOVE_75_PERCENT
Definition: SharedDefines.h:1315
@ AURA_STATE_HEALTHLESS_20_PERCENT
Definition: SharedDefines.h:1293
@ AURA_STATE_CONFLAGRATE
Definition: SharedDefines.h:1306
@ AURA_STATE_HUNTER_PARRY
Definition: SharedDefines.h:1298

References AURA_STATE_BERSERKING, AURA_STATE_BLEEDING, AURA_STATE_CONFLAGRATE, AURA_STATE_DEADLY_POISON, AURA_STATE_DEFENSE, AURA_STATE_ENRAGE, AURA_STATE_FAERIE_FIRE, AURA_STATE_FROZEN, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, AURA_STATE_HUNTER_PARRY, AURA_STATE_JUDGEMENT, AURA_STATE_NONE, AURA_STATE_SWIFTMEND, AURA_STATE_UNKNOWN19, AURA_STATE_UNKNOWN22, and AURA_STATE_WARRIOR_VICTORY_RUSH.

◆ FromIndex() [30/32]

AC_API_EXPORT Mechanics EnumUtils< Mechanics >::FromIndex ( std::size_t  index)
1921{
1922 switch (index)
1923 {
1924 case 0: return MECHANIC_NONE;
1925 case 1: return MECHANIC_CHARM;
1926 case 2: return MECHANIC_DISORIENTED;
1927 case 3: return MECHANIC_DISARM;
1928 case 4: return MECHANIC_DISTRACT;
1929 case 5: return MECHANIC_FEAR;
1930 case 6: return MECHANIC_GRIP;
1931 case 7: return MECHANIC_ROOT;
1932 case 8: return MECHANIC_SLOW_ATTACK;
1933 case 9: return MECHANIC_SILENCE;
1934 case 10: return MECHANIC_SLEEP;
1935 case 11: return MECHANIC_SNARE;
1936 case 12: return MECHANIC_STUN;
1937 case 13: return MECHANIC_FREEZE;
1938 case 14: return MECHANIC_KNOCKOUT;
1939 case 15: return MECHANIC_BLEED;
1940 case 16: return MECHANIC_BANDAGE;
1941 case 17: return MECHANIC_POLYMORPH;
1942 case 18: return MECHANIC_BANISH;
1943 case 19: return MECHANIC_SHIELD;
1944 case 20: return MECHANIC_SHACKLE;
1945 case 21: return MECHANIC_MOUNT;
1946 case 22: return MECHANIC_INFECTED;
1947 case 23: return MECHANIC_TURN;
1948 case 24: return MECHANIC_HORROR;
1949 case 25: return MECHANIC_INVULNERABILITY;
1950 case 26: return MECHANIC_INTERRUPT;
1951 case 27: return MECHANIC_DAZE;
1952 case 28: return MECHANIC_DISCOVERY;
1953 case 29: return MECHANIC_IMMUNE_SHIELD;
1954 case 30: return MECHANIC_SAPPED;
1955 case 31: return MECHANIC_ENRAGED;
1956 default: throw std::out_of_range("index");
1957 }
1958}
@ MECHANIC_SLOW_ATTACK
Definition: SharedDefines.h:1333
@ MECHANIC_DISARM
Definition: SharedDefines.h:1328
@ MECHANIC_NONE
Definition: SharedDefines.h:1325
@ MECHANIC_ENRAGED
Definition: SharedDefines.h:1356
@ MECHANIC_MOUNT
Definition: SharedDefines.h:1346
@ MECHANIC_FEAR
Definition: SharedDefines.h:1330
@ MECHANIC_INVULNERABILITY
Definition: SharedDefines.h:1350
@ MECHANIC_DISORIENTED
Definition: SharedDefines.h:1327
@ MECHANIC_KNOCKOUT
Definition: SharedDefines.h:1339
@ MECHANIC_CHARM
Definition: SharedDefines.h:1326
@ MECHANIC_TURN
Definition: SharedDefines.h:1348
@ MECHANIC_STUN
Definition: SharedDefines.h:1337
@ MECHANIC_FREEZE
Definition: SharedDefines.h:1338
@ MECHANIC_INTERRUPT
Definition: SharedDefines.h:1351
@ MECHANIC_ROOT
Definition: SharedDefines.h:1332
@ MECHANIC_BANDAGE
Definition: SharedDefines.h:1341
@ MECHANIC_GRIP
Definition: SharedDefines.h:1331
@ MECHANIC_SLEEP
Definition: SharedDefines.h:1335
@ MECHANIC_BLEED
Definition: SharedDefines.h:1340
@ MECHANIC_POLYMORPH
Definition: SharedDefines.h:1342
@ MECHANIC_BANISH
Definition: SharedDefines.h:1343
@ MECHANIC_DAZE
Definition: SharedDefines.h:1352
@ MECHANIC_IMMUNE_SHIELD
Definition: SharedDefines.h:1354
@ MECHANIC_SNARE
Definition: SharedDefines.h:1336
@ MECHANIC_SILENCE
Definition: SharedDefines.h:1334
@ MECHANIC_SHACKLE
Definition: SharedDefines.h:1345
@ MECHANIC_SAPPED
Definition: SharedDefines.h:1355
@ MECHANIC_DISTRACT
Definition: SharedDefines.h:1329
@ MECHANIC_DISCOVERY
Definition: SharedDefines.h:1353
@ MECHANIC_SHIELD
Definition: SharedDefines.h:1344
@ MECHANIC_HORROR
Definition: SharedDefines.h:1349
@ MECHANIC_INFECTED
Definition: SharedDefines.h:1347

References MECHANIC_BANDAGE, MECHANIC_BANISH, MECHANIC_BLEED, MECHANIC_CHARM, MECHANIC_DAZE, MECHANIC_DISARM, MECHANIC_DISCOVERY, MECHANIC_DISORIENTED, MECHANIC_DISTRACT, MECHANIC_ENRAGED, MECHANIC_FEAR, MECHANIC_FREEZE, MECHANIC_GRIP, MECHANIC_HORROR, MECHANIC_IMMUNE_SHIELD, MECHANIC_INFECTED, MECHANIC_INTERRUPT, MECHANIC_INVULNERABILITY, MECHANIC_KNOCKOUT, MECHANIC_MOUNT, MECHANIC_NONE, MECHANIC_POLYMORPH, MECHANIC_ROOT, MECHANIC_SAPPED, MECHANIC_SHACKLE, MECHANIC_SHIELD, MECHANIC_SILENCE, MECHANIC_SLEEP, MECHANIC_SLOW_ATTACK, MECHANIC_SNARE, MECHANIC_STUN, and MECHANIC_TURN.

◆ FromIndex() [31/32]

AC_API_EXPORT Emote EnumUtils< Emote >::FromIndex ( std::size_t  index)
2192{
2193 switch (index)
2194 {
2195 case 0: return EMOTE_ONESHOT_TALK;
2196 case 1: return EMOTE_ONESHOT_BOW;
2197 case 2: return EMOTE_ONESHOT_WAVE;
2198 case 3: return EMOTE_ONESHOT_CHEER;
2199 case 4: return EMOTE_ONESHOT_EXCLAMATION;
2200 case 5: return EMOTE_ONESHOT_QUESTION;
2201 case 6: return EMOTE_ONESHOT_EAT;
2202 case 7: return EMOTE_STATE_DANCE;
2203 case 8: return EMOTE_ONESHOT_LAUGH;
2204 case 9: return EMOTE_STATE_SLEEP;
2205 case 10: return EMOTE_STATE_SIT;
2206 case 11: return EMOTE_ONESHOT_RUDE;
2207 case 12: return EMOTE_ONESHOT_ROAR;
2208 case 13: return EMOTE_ONESHOT_KNEEL;
2209 case 14: return EMOTE_ONESHOT_KISS;
2210 case 15: return EMOTE_ONESHOT_CRY;
2211 case 16: return EMOTE_ONESHOT_CHICKEN;
2212 case 17: return EMOTE_ONESHOT_BEG;
2213 case 18: return EMOTE_ONESHOT_APPLAUD;
2214 case 19: return EMOTE_ONESHOT_SHOUT;
2215 case 20: return EMOTE_ONESHOT_FLEX;
2216 case 21: return EMOTE_ONESHOT_SHY;
2217 case 22: return EMOTE_ONESHOT_POINT;
2218 case 23: return EMOTE_STATE_STAND;
2219 case 24: return EMOTE_STATE_READY_UNARMED;
2220 case 25: return EMOTE_STATE_WORK_SHEATHED;
2221 case 26: return EMOTE_STATE_POINT;
2222 case 27: return EMOTE_STATE_NONE;
2223 case 28: return EMOTE_ONESHOT_WOUND;
2224 case 29: return EMOTE_ONESHOT_WOUND_CRITICAL;
2225 case 30: return EMOTE_ONESHOT_ATTACK_UNARMED;
2226 case 31: return EMOTE_ONESHOT_ATTACK1H;
2227 case 32: return EMOTE_ONESHOT_ATTACK2HTIGHT;
2228 case 33: return EMOTE_ONESHOT_ATTACK2H_LOOSE;
2229 case 34: return EMOTE_ONESHOT_PARRY_UNARMED;
2230 case 35: return EMOTE_ONESHOT_PARRY_SHIELD;
2231 case 36: return EMOTE_ONESHOT_READY_UNARMED;
2232 case 37: return EMOTE_ONESHOT_READY1H;
2233 case 38: return EMOTE_ONESHOT_READY_BOW;
2234 case 39: return EMOTE_ONESHOT_SPELL_PRECAST;
2235 case 40: return EMOTE_ONESHOT_SPELL_CAST;
2236 case 41: return EMOTE_ONESHOT_BATTLE_ROAR;
2237 case 42: return EMOTE_ONESHOT_SPECIALATTACK1H;
2238 case 43: return EMOTE_ONESHOT_KICK;
2239 case 44: return EMOTE_ONESHOT_ATTACK_THROWN;
2240 case 45: return EMOTE_STATE_STUN;
2241 case 46: return EMOTE_STATE_DEAD;
2242 case 47: return EMOTE_ONESHOT_SALUTE;
2243 case 48: return EMOTE_STATE_KNEEL;
2244 case 49: return EMOTE_STATE_USE_STANDING;
2245 case 50: return EMOTE_ONESHOT_WAVE_NO_SHEATHE;
2246 case 51: return EMOTE_ONESHOT_CHEER_NO_SHEATHE;
2247 case 52: return EMOTE_ONESHOT_EAT_NO_SHEATHE;
2248 case 53: return EMOTE_STATE_STUN_NO_SHEATHE;
2249 case 54: return EMOTE_ONESHOT_DANCE;
2250 case 55: return EMOTE_ONESHOT_SALUTE_NO_SHEATH;
2252 case 57: return EMOTE_ONESHOT_LAUGH_NO_SHEATHE;
2253 case 58: return EMOTE_STATE_WORK;
2254 case 59: return EMOTE_STATE_SPELL_PRECAST;
2255 case 60: return EMOTE_ONESHOT_READY_RIFLE;
2256 case 61: return EMOTE_STATE_READY_RIFLE;
2257 case 62: return EMOTE_STATE_WORK_MINING;
2258 case 63: return EMOTE_STATE_WORK_CHOPWOOD;
2259 case 64: return EMOTE_STATE_APPLAUD;
2260 case 65: return EMOTE_ONESHOT_LIFTOFF;
2261 case 66: return EMOTE_ONESHOT_YES;
2262 case 67: return EMOTE_ONESHOT_NO;
2263 case 68: return EMOTE_ONESHOT_TRAIN;
2264 case 69: return EMOTE_ONESHOT_LAND;
2265 case 70: return EMOTE_STATE_AT_EASE;
2266 case 71: return EMOTE_STATE_READY1H;
2267 case 72: return EMOTE_STATE_SPELL_KNEEL_START;
2268 case 73: return EMOTE_STATE_SUBMERGED;
2269 case 74: return EMOTE_ONESHOT_SUBMERGE;
2270 case 75: return EMOTE_STATE_READY2H;
2271 case 76: return EMOTE_STATE_READY_BOW;
2272 case 77: return EMOTE_ONESHOT_MOUNT_SPECIAL;
2273 case 78: return EMOTE_STATE_TALK;
2274 case 79: return EMOTE_STATE_FISHING;
2275 case 80: return EMOTE_ONESHOT_FISHING;
2276 case 81: return EMOTE_ONESHOT_LOOT;
2277 case 82: return EMOTE_STATE_WHIRLWIND;
2278 case 83: return EMOTE_STATE_DROWNED;
2279 case 84: return EMOTE_STATE_HOLD_BOW;
2280 case 85: return EMOTE_STATE_HOLD_RIFLE;
2281 case 86: return EMOTE_STATE_HOLD_THROWN;
2282 case 87: return EMOTE_ONESHOT_DROWN;
2283 case 88: return EMOTE_ONESHOT_STOMP;
2284 case 89: return EMOTE_ONESHOT_ATTACK_OFF;
2285 case 90: return EMOTE_ONESHOT_ATTACK_OFF_PIERCE;
2286 case 91: return EMOTE_STATE_ROAR;
2287 case 92: return EMOTE_STATE_LAUGH;
2288 case 93: return EMOTE_ONESHOT_CREATURE_SPECIAL;
2289 case 94: return EMOTE_ONESHOT_JUMPLANDRUN;
2290 case 95: return EMOTE_ONESHOT_JUMPEND;
2291 case 96: return EMOTE_ONESHOT_TALK_NO_SHEATHE;
2292 case 97: return EMOTE_ONESHOT_POINT_NO_SHEATHE;
2293 case 98: return EMOTE_STATE_CANNIBALIZE;
2294 case 99: return EMOTE_ONESHOT_JUMPSTART;
2295 case 100: return EMOTE_STATE_DANCESPECIAL;
2296 case 101: return EMOTE_ONESHOT_DANCESPECIAL;
2297 case 102: return EMOTE_ONESHOT_CUSTOM_SPELL_01;
2298 case 103: return EMOTE_ONESHOT_CUSTOM_SPELL_02;
2299 case 104: return EMOTE_ONESHOT_CUSTOM_SPELL_03;
2300 case 105: return EMOTE_ONESHOT_CUSTOM_SPELL_04;
2301 case 106: return EMOTE_ONESHOT_CUSTOM_SPELL_05;
2302 case 107: return EMOTE_ONESHOT_CUSTOM_SPELL_06;
2303 case 108: return EMOTE_ONESHOT_CUSTOM_SPELL_07;
2304 case 109: return EMOTE_ONESHOT_CUSTOM_SPELL_08;
2305 case 110: return EMOTE_ONESHOT_CUSTOM_SPELL_09;
2306 case 111: return EMOTE_ONESHOT_CUSTOM_SPELL_10;
2307 case 112: return EMOTE_STATE_EXCLAIM;
2308 case 113: return EMOTE_STATE_DANCE_CUSTOM;
2309 case 114: return EMOTE_STATE_SIT_CHAIR_MED;
2310 case 115: return EMOTE_STATE_CUSTOM_SPELL_01;
2311 case 116: return EMOTE_STATE_CUSTOM_SPELL_02;
2312 case 117: return EMOTE_STATE_EAT;
2313 case 118: return EMOTE_STATE_CUSTOM_SPELL_04;
2314 case 119: return EMOTE_STATE_CUSTOM_SPELL_03;
2315 case 120: return EMOTE_STATE_CUSTOM_SPELL_05;
2316 case 121: return EMOTE_STATE_SPELLEFFECT_HOLD;
2317 case 122: return EMOTE_STATE_EAT_NO_SHEATHE;
2318 case 123: return EMOTE_STATE_MOUNT;
2319 case 124: return EMOTE_STATE_READY2HL;
2320 case 125: return EMOTE_STATE_SIT_CHAIR_HIGH;
2321 case 126: return EMOTE_STATE_FALL;
2322 case 127: return EMOTE_STATE_LOOT;
2323 case 128: return EMOTE_STATE_SUBMERGED_NEW;
2324 case 129: return EMOTE_ONESHOT_COWER;
2325 case 130: return EMOTE_STATE_COWER;
2326 case 131: return EMOTE_ONESHOT_USE_STANDING;
2327 case 132: return EMOTE_STATE_STEALTH_STAND;
2328 case 133: return EMOTE_ONESHOT_OMNICAST_GHOUL;
2329 case 134: return EMOTE_ONESHOT_ATTACK_BOW;
2330 case 135: return EMOTE_ONESHOT_ATTACK_RIFLE;
2331 case 136: return EMOTE_STATE_SWIM_IDLE;
2332 case 137: return EMOTE_STATE_ATTACK_UNARMED;
2333 case 138: return EMOTE_ONESHOT_SPELL_CAST_W_SOUND;
2334 case 139: return EMOTE_ONESHOT_DODGE;
2335 case 140: return EMOTE_ONESHOT_PARRY1H;
2336 case 141: return EMOTE_ONESHOT_PARRY2H;
2337 case 142: return EMOTE_ONESHOT_PARRY2HL;
2338 case 143: return EMOTE_STATE_FLYFALL;
2339 case 144: return EMOTE_ONESHOT_FLYDEATH;
2340 case 145: return EMOTE_STATE_FLY_FALL;
2341 case 146: return EMOTE_ONESHOT_FLY_SIT_GROUND_DOWN;
2342 case 147: return EMOTE_ONESHOT_FLY_SIT_GROUND_UP;
2343 case 148: return EMOTE_ONESHOT_EMERGE;
2344 case 149: return EMOTE_ONESHOT_DRAGON_SPIT;
2345 case 150: return EMOTE_STATE_SPECIAL_UNARMED;
2346 case 151: return EMOTE_ONESHOT_FLYGRAB;
2347 case 152: return EMOTE_STATE_FLYGRABCLOSED;
2348 case 153: return EMOTE_ONESHOT_FLYGRABTHROWN;
2349 case 154: return EMOTE_STATE_FLY_SIT_GROUND;
2350 case 155: return EMOTE_STATE_WALK_BACKWARDS;
2351 case 156: return EMOTE_ONESHOT_FLYTALK;
2352 case 157: return EMOTE_ONESHOT_FLYATTACK1H;
2353 case 158: return EMOTE_STATE_CUSTOM_SPELL_08;
2354 case 159: return EMOTE_ONESHOT_FLY_DRAGON_SPIT;
2355 case 160: return EMOTE_STATE_SIT_CHAIR_LOW;
2356 case 161: return EMOTE_ONESHOT_STUN;
2357 case 162: return EMOTE_ONESHOT_SPELL_CAST_OMNI;
2358 case 163: return EMOTE_STATE_READY_THROWN;
2359 case 164: return EMOTE_ONESHOT_WORK_CHOPWOOD;
2360 case 165: return EMOTE_ONESHOT_WORK_MINING;
2361 case 166: return EMOTE_STATE_SPELL_CHANNEL_OMNI;
2362 case 167: return EMOTE_STATE_SPELL_CHANNEL_DIRECTED;
2363 case 168: return EMOTE_STAND_STATE_NONE;
2364 case 169: return EMOTE_STATE_READYJOUST;
2365 case 170: return EMOTE_STATE_STRANGULATE;
2366 case 171: return EMOTE_STATE_READY_SPELL_OMNI;
2367 case 172: return EMOTE_STATE_HOLD_JOUST;
2368 case 173: return EMOTE_ONESHOT_CRY_JAINA;
2369 default: throw std::out_of_range("index");
2370 }
2371}
@ EMOTE_ONESHOT_PARRY2H
Definition: SharedDefines.h:2036
@ EMOTE_ONESHOT_CUSTOM_SPELL_06
Definition: SharedDefines.h:2002
@ EMOTE_ONESHOT_CHEER_NO_SHEATHE
Definition: SharedDefines.h:1946
@ EMOTE_STATE_HOLD_RIFLE
Definition: SharedDefines.h:1980
@ EMOTE_ONESHOT_CUSTOM_SPELL_03
Definition: SharedDefines.h:1999
@ EMOTE_ONESHOT_PARRY_UNARMED
Definition: SharedDefines.h:1929
@ EMOTE_STATE_SPELL_PRECAST
Definition: SharedDefines.h:1954
@ EMOTE_STATE_WORK_SHEATHED
Definition: SharedDefines.h:1920
@ EMOTE_STATE_EAT
Definition: SharedDefines.h:2012
@ EMOTE_ONESHOT_CRY_JAINA
Definition: SharedDefines.h:2068
@ EMOTE_ONESHOT_LAUGH_NO_SHEATHE
Definition: SharedDefines.h:1952
@ EMOTE_STATE_READY_SPELL_OMNI
Definition: SharedDefines.h:2066
@ EMOTE_STATE_READY_RIFLE
Definition: SharedDefines.h:1956
@ EMOTE_STATE_SLEEP
Definition: SharedDefines.h:1904
@ EMOTE_ONESHOT_PARRY2HL
Definition: SharedDefines.h:2037
@ EMOTE_STATE_READY1H
Definition: SharedDefines.h:1966
@ EMOTE_ONESHOT_SPECIALATTACK1H
Definition: SharedDefines.h:1937
@ EMOTE_ONESHOT_LOOT
Definition: SharedDefines.h:1976
@ EMOTE_ONESHOT_ATTACK_THROWN
Definition: SharedDefines.h:1939
@ EMOTE_STATE_SIT_CHAIR_LOW
Definition: SharedDefines.h:2055
@ EMOTE_ONESHOT_FLY_SIT_GROUND_UP
Definition: SharedDefines.h:2042
@ EMOTE_ONESHOT_KNEEL
Definition: SharedDefines.h:1908
@ EMOTE_STATE_CUSTOM_SPELL_03
Definition: SharedDefines.h:2014
@ EMOTE_STATE_SIT
Definition: SharedDefines.h:1905
@ EMOTE_ONESHOT_KICK
Definition: SharedDefines.h:1938
@ EMOTE_ONESHOT_WORK_CHOPWOOD
Definition: SharedDefines.h:2059
@ EMOTE_ONESHOT_NO
Definition: SharedDefines.h:1962
@ EMOTE_ONESHOT_USE_STANDING
Definition: SharedDefines.h:2026
@ EMOTE_STATE_FLY_FALL
Definition: SharedDefines.h:2040
@ EMOTE_ONESHOT_POINT
Definition: SharedDefines.h:1917
@ EMOTE_ONESHOT_JUMPSTART
Definition: SharedDefines.h:1994
@ EMOTE_ONESHOT_ATTACK2HTIGHT
Definition: SharedDefines.h:1927
@ EMOTE_ONESHOT_WOUND_CRITICAL
Definition: SharedDefines.h:1924
@ EMOTE_ONESHOT_POINT_NO_SHEATHE
Definition: SharedDefines.h:1992
@ EMOTE_STATE_STAND
Definition: SharedDefines.h:1918
@ EMOTE_ONESHOT_SPELL_PRECAST
Definition: SharedDefines.h:1934
@ EMOTE_ONESHOT_YES
Definition: SharedDefines.h:1961
@ EMOTE_ONESHOT_EXCLAMATION
Definition: SharedDefines.h:1899
@ EMOTE_STATE_FISHING
Definition: SharedDefines.h:1974
@ EMOTE_STATE_SIT_CHAIR_MED
Definition: SharedDefines.h:2009
@ EMOTE_ONESHOT_SPELL_CAST_OMNI
Definition: SharedDefines.h:2057
@ EMOTE_STATE_WORK_MINING
Definition: SharedDefines.h:1957
@ EMOTE_STAND_STATE_NONE
Definition: SharedDefines.h:2063
@ EMOTE_ONESHOT_ATTACK1H
Definition: SharedDefines.h:1926
@ EMOTE_ONESHOT_APPLAUD
Definition: SharedDefines.h:1913
@ EMOTE_ONESHOT_JUMPEND
Definition: SharedDefines.h:1990
@ EMOTE_STATE_STRANGULATE
Definition: SharedDefines.h:2065
@ EMOTE_STATE_READYJOUST
Definition: SharedDefines.h:2064
@ EMOTE_ONESHOT_LAND
Definition: SharedDefines.h:1964
@ EMOTE_STATE_LAUGH
Definition: SharedDefines.h:1987
@ EMOTE_STATE_POINT
Definition: SharedDefines.h:1921
@ EMOTE_STATE_SPELL_CHANNEL_DIRECTED
Definition: SharedDefines.h:2062
@ EMOTE_ONESHOT_CUSTOM_SPELL_01
Definition: SharedDefines.h:1997
@ EMOTE_STATE_STEALTH_STAND
Definition: SharedDefines.h:2027
@ EMOTE_STATE_WORK_CHOPWOOD
Definition: SharedDefines.h:1958
@ EMOTE_ONESHOT_FLYGRABTHROWN
Definition: SharedDefines.h:2048
@ EMOTE_STATE_FLY_SIT_GROUND
Definition: SharedDefines.h:2049
@ EMOTE_STATE_TALK
Definition: SharedDefines.h:1973
@ EMOTE_ONESHOT_PARRY1H
Definition: SharedDefines.h:2035
@ EMOTE_ONESHOT_CREATURE_SPECIAL
Definition: SharedDefines.h:1988
@ EMOTE_ONESHOT_QUESTION
Definition: SharedDefines.h:1900
@ EMOTE_ONESHOT_ATTACK_RIFLE
Definition: SharedDefines.h:2030
@ EMOTE_STATE_SPELLEFFECT_HOLD
Definition: SharedDefines.h:2016
@ EMOTE_ONESHOT_CUSTOM_SPELL_02
Definition: SharedDefines.h:1998
@ EMOTE_ONESHOT_SPELL_CAST_W_SOUND
Definition: SharedDefines.h:2033
@ EMOTE_STATE_DANCE_CUSTOM
Definition: SharedDefines.h:2008
@ EMOTE_ONESHOT_OMNICAST_GHOUL
Definition: SharedDefines.h:2028
@ EMOTE_ONESHOT_COWER
Definition: SharedDefines.h:2024
@ EMOTE_STATE_CUSTOM_SPELL_08
Definition: SharedDefines.h:2053
@ EMOTE_ONESHOT_SALUTE_NO_SHEATH
Definition: SharedDefines.h:1950
@ EMOTE_ONESHOT_STOMP
Definition: SharedDefines.h:1983
@ EMOTE_ONESHOT_SHY
Definition: SharedDefines.h:1916
@ EMOTE_STATE_SPELL_CHANNEL_OMNI
Definition: SharedDefines.h:2061
@ EMOTE_ONESHOT_READY_BOW
Definition: SharedDefines.h:1933
@ EMOTE_ONESHOT_DRAGON_SPIT
Definition: SharedDefines.h:2044
@ EMOTE_ONESHOT_CUSTOM_SPELL_09
Definition: SharedDefines.h:2005
@ EMOTE_ONESHOT_CUSTOM_SPELL_07
Definition: SharedDefines.h:2003
@ EMOTE_ONESHOT_FLYTALK
Definition: SharedDefines.h:2051
@ EMOTE_ONESHOT_FLYGRAB
Definition: SharedDefines.h:2046
@ EMOTE_ONESHOT_DROWN
Definition: SharedDefines.h:1982
@ EMOTE_STATE_LOOT
Definition: SharedDefines.h:2022
@ EMOTE_ONESHOT_WOUND
Definition: SharedDefines.h:1923
@ EMOTE_ONESHOT_BEG
Definition: SharedDefines.h:1912
@ EMOTE_ONESHOT_FLYATTACK1H
Definition: SharedDefines.h:2052
@ EMOTE_STATE_COWER
Definition: SharedDefines.h:2025
@ EMOTE_STATE_CUSTOM_SPELL_04
Definition: SharedDefines.h:2013
@ EMOTE_ONESHOT_FLY_SIT_GROUND_DOWN
Definition: SharedDefines.h:2041
@ EMOTE_STATE_DANCESPECIAL
Definition: SharedDefines.h:1995
@ EMOTE_STATE_HOLD_JOUST
Definition: SharedDefines.h:2067
@ EMOTE_ONESHOT_BATTLE_ROAR
Definition: SharedDefines.h:1936
@ EMOTE_STATE_DEAD
Definition: SharedDefines.h:1941
@ EMOTE_STATE_READY_UNARMED
Definition: SharedDefines.h:1919
@ EMOTE_STATE_READY_BOW
Definition: SharedDefines.h:1971
@ EMOTE_STATE_APPLAUD
Definition: SharedDefines.h:1959
@ EMOTE_ONESHOT_CUSTOM_SPELL_04
Definition: SharedDefines.h:2000
@ EMOTE_STATE_SWIM_IDLE
Definition: SharedDefines.h:2031
@ EMOTE_ONESHOT_CUSTOM_SPELL_10
Definition: SharedDefines.h:2006
@ EMOTE_STATE_AT_EASE
Definition: SharedDefines.h:1965
@ EMOTE_ONESHOT_LAUGH
Definition: SharedDefines.h:1903
@ EMOTE_STATE_FLYGRABCLOSED
Definition: SharedDefines.h:2047
@ EMOTE_STATE_WHIRLWIND
Definition: SharedDefines.h:1977
@ EMOTE_ONESHOT_FLEX
Definition: SharedDefines.h:1915
@ EMOTE_ONESHOT_CHEER
Definition: SharedDefines.h:1898
@ EMOTE_STATE_STUN_NO_SHEATHE
Definition: SharedDefines.h:1948
@ EMOTE_ONESHOT_EAT
Definition: SharedDefines.h:1901
@ EMOTE_ONESHOT_WORK_MINING
Definition: SharedDefines.h:2060
@ EMOTE_ONESHOT_EMERGE
Definition: SharedDefines.h:2043
@ EMOTE_STATE_SIT_CHAIR_HIGH
Definition: SharedDefines.h:2020
@ EMOTE_ONESHOT_DODGE
Definition: SharedDefines.h:2034
@ EMOTE_ONESHOT_ATTACK2H_LOOSE
Definition: SharedDefines.h:1928
@ EMOTE_ONESHOT_ATTACK_UNARMED
Definition: SharedDefines.h:1925
@ EMOTE_ONESHOT_READY1H
Definition: SharedDefines.h:1932
@ EMOTE_ONESHOT_CHICKEN
Definition: SharedDefines.h:1911
@ EMOTE_ONESHOT_ROAR
Definition: SharedDefines.h:1907
@ EMOTE_ONESHOT_BOW
Definition: SharedDefines.h:1896
@ EMOTE_STATE_HOLD_BOW
Definition: SharedDefines.h:1979
@ EMOTE_STATE_CUSTOM_SPELL_05
Definition: SharedDefines.h:2015
@ EMOTE_ONESHOT_WAVE_NO_SHEATHE
Definition: SharedDefines.h:1945
@ EMOTE_ONESHOT_SUBMERGE
Definition: SharedDefines.h:1969
@ EMOTE_ONESHOT_CUSTOM_SPELL_05
Definition: SharedDefines.h:2001
@ EMOTE_ONESHOT_FLY_DRAGON_SPIT
Definition: SharedDefines.h:2054
@ EMOTE_STATE_STUN
Definition: SharedDefines.h:1940
@ EMOTE_STATE_READY_THROWN
Definition: SharedDefines.h:2058
@ EMOTE_STATE_READY2HL
Definition: SharedDefines.h:2019
@ EMOTE_ONESHOT_FLYDEATH
Definition: SharedDefines.h:2039
@ EMOTE_ONESHOT_RUDE
Definition: SharedDefines.h:1906
@ EMOTE_STATE_SPECIAL_UNARMED
Definition: SharedDefines.h:2045
@ EMOTE_ONESHOT_CRY
Definition: SharedDefines.h:1910
@ EMOTE_ONESHOT_SALUTE
Definition: SharedDefines.h:1942
@ EMOTE_STATE_KNEEL
Definition: SharedDefines.h:1943
@ EMOTE_STATE_DANCE
Definition: SharedDefines.h:1902
@ EMOTE_ONESHOT_ATTACK_OFF
Definition: SharedDefines.h:1984
@ EMOTE_STATE_ROAR
Definition: SharedDefines.h:1986
@ EMOTE_STATE_NONE
Definition: SharedDefines.h:1922
@ EMOTE_ONESHOT_CUSTOM_SPELL_08
Definition: SharedDefines.h:2004
@ EMOTE_STATE_EAT_NO_SHEATHE
Definition: SharedDefines.h:2017
@ EMOTE_ONESHOT_DANCE
Definition: SharedDefines.h:1949
@ EMOTE_ONESHOT_READY_RIFLE
Definition: SharedDefines.h:1955
@ EMOTE_STATE_READY2H
Definition: SharedDefines.h:1970
@ EMOTE_STATE_MOUNT
Definition: SharedDefines.h:2018
@ EMOTE_ONESHOT_READY_UNARMED
Definition: SharedDefines.h:1931
@ EMOTE_ONESHOT_STUN
Definition: SharedDefines.h:2056
@ EMOTE_ONESHOT_EAT_NO_SHEATHE
Definition: SharedDefines.h:1947
@ EMOTE_ONESHOT_JUMPLANDRUN
Definition: SharedDefines.h:1989
@ EMOTE_STATE_HOLD_THROWN
Definition: SharedDefines.h:1981
@ EMOTE_STATE_FALL
Definition: SharedDefines.h:2021
@ EMOTE_ONESHOT_MOUNT_SPECIAL
Definition: SharedDefines.h:1972
@ EMOTE_ONESHOT_TRAIN
Definition: SharedDefines.h:1963
@ EMOTE_ONESHOT_PARRY_SHIELD
Definition: SharedDefines.h:1930
@ EMOTE_STATE_ATTACK_UNARMED
Definition: SharedDefines.h:2032
@ EMOTE_ONESHOT_ATTACK_OFF_PIERCE
Definition: SharedDefines.h:1985
@ EMOTE_STATE_EXCLAIM
Definition: SharedDefines.h:2007
@ EMOTE_STATE_WORK
Definition: SharedDefines.h:1953
@ EMOTE_ONESHOT_LIFTOFF
Definition: SharedDefines.h:1960
@ EMOTE_ONESHOT_FISHING
Definition: SharedDefines.h:1975
@ EMOTE_STATE_SUBMERGED_NEW
Definition: SharedDefines.h:2023
@ EMOTE_ONESHOT_KISS
Definition: SharedDefines.h:1909
@ EMOTE_ONESHOT_ATTACK_BOW
Definition: SharedDefines.h:2029
@ EMOTE_STATE_WALK_BACKWARDS
Definition: SharedDefines.h:2050
@ EMOTE_STATE_FLYFALL
Definition: SharedDefines.h:2038
@ EMOTE_STATE_CANNIBALIZE
Definition: SharedDefines.h:1993
@ EMOTE_ONESHOT_TALK_NO_SHEATHE
Definition: SharedDefines.h:1991
@ EMOTE_ONESHOT_SHOUT
Definition: SharedDefines.h:1914
@ EMOTE_ONESHOT_SPELL_CAST
Definition: SharedDefines.h:1935
@ EMOTE_ONESHOT_WAVE
Definition: SharedDefines.h:1897
@ EMOTE_STATE_DROWNED
Definition: SharedDefines.h:1978
@ EMOTE_ONESHOT_DANCESPECIAL
Definition: SharedDefines.h:1996
@ EMOTE_STATE_SPELL_KNEEL_START
Definition: SharedDefines.h:1967
@ EMOTE_STATE_CUSTOM_SPELL_01
Definition: SharedDefines.h:2010
@ EMOTE_STATE_SUBMERGED
Definition: SharedDefines.h:1968
@ EMOTE_ONESHOT_TALK
Definition: SharedDefines.h:1895
@ EMOTE_STATE_USE_STANDING
Definition: SharedDefines.h:1944
@ EMOTE_STATE_USE_STANDING_NO_SHEATHE
Definition: SharedDefines.h:1951
@ EMOTE_STATE_CUSTOM_SPELL_02
Definition: SharedDefines.h:2011

References EMOTE_ONESHOT_APPLAUD, EMOTE_ONESHOT_ATTACK1H, EMOTE_ONESHOT_ATTACK2H_LOOSE, EMOTE_ONESHOT_ATTACK2HTIGHT, EMOTE_ONESHOT_ATTACK_BOW, EMOTE_ONESHOT_ATTACK_OFF, EMOTE_ONESHOT_ATTACK_OFF_PIERCE, EMOTE_ONESHOT_ATTACK_RIFLE, EMOTE_ONESHOT_ATTACK_THROWN, EMOTE_ONESHOT_ATTACK_UNARMED, EMOTE_ONESHOT_BATTLE_ROAR, EMOTE_ONESHOT_BEG, EMOTE_ONESHOT_BOW, EMOTE_ONESHOT_CHEER, EMOTE_ONESHOT_CHEER_NO_SHEATHE, EMOTE_ONESHOT_CHICKEN, EMOTE_ONESHOT_COWER, EMOTE_ONESHOT_CREATURE_SPECIAL, EMOTE_ONESHOT_CRY, EMOTE_ONESHOT_CRY_JAINA, EMOTE_ONESHOT_CUSTOM_SPELL_01, EMOTE_ONESHOT_CUSTOM_SPELL_02, EMOTE_ONESHOT_CUSTOM_SPELL_03, EMOTE_ONESHOT_CUSTOM_SPELL_04, EMOTE_ONESHOT_CUSTOM_SPELL_05, EMOTE_ONESHOT_CUSTOM_SPELL_06, EMOTE_ONESHOT_CUSTOM_SPELL_07, EMOTE_ONESHOT_CUSTOM_SPELL_08, EMOTE_ONESHOT_CUSTOM_SPELL_09, EMOTE_ONESHOT_CUSTOM_SPELL_10, EMOTE_ONESHOT_DANCE, EMOTE_ONESHOT_DANCESPECIAL, EMOTE_ONESHOT_DODGE, EMOTE_ONESHOT_DRAGON_SPIT, EMOTE_ONESHOT_DROWN, EMOTE_ONESHOT_EAT, EMOTE_ONESHOT_EAT_NO_SHEATHE, EMOTE_ONESHOT_EMERGE, EMOTE_ONESHOT_EXCLAMATION, EMOTE_ONESHOT_FISHING, EMOTE_ONESHOT_FLEX, EMOTE_ONESHOT_FLY_DRAGON_SPIT, EMOTE_ONESHOT_FLY_SIT_GROUND_DOWN, EMOTE_ONESHOT_FLY_SIT_GROUND_UP, EMOTE_ONESHOT_FLYATTACK1H, EMOTE_ONESHOT_FLYDEATH, EMOTE_ONESHOT_FLYGRAB, EMOTE_ONESHOT_FLYGRABTHROWN, EMOTE_ONESHOT_FLYTALK, EMOTE_ONESHOT_JUMPEND, EMOTE_ONESHOT_JUMPLANDRUN, EMOTE_ONESHOT_JUMPSTART, EMOTE_ONESHOT_KICK, EMOTE_ONESHOT_KISS, EMOTE_ONESHOT_KNEEL, EMOTE_ONESHOT_LAND, EMOTE_ONESHOT_LAUGH, EMOTE_ONESHOT_LAUGH_NO_SHEATHE, EMOTE_ONESHOT_LIFTOFF, EMOTE_ONESHOT_LOOT, EMOTE_ONESHOT_MOUNT_SPECIAL, EMOTE_ONESHOT_NO, EMOTE_ONESHOT_OMNICAST_GHOUL, EMOTE_ONESHOT_PARRY1H, EMOTE_ONESHOT_PARRY2H, EMOTE_ONESHOT_PARRY2HL, EMOTE_ONESHOT_PARRY_SHIELD, EMOTE_ONESHOT_PARRY_UNARMED, EMOTE_ONESHOT_POINT, EMOTE_ONESHOT_POINT_NO_SHEATHE, EMOTE_ONESHOT_QUESTION, EMOTE_ONESHOT_READY1H, EMOTE_ONESHOT_READY_BOW, EMOTE_ONESHOT_READY_RIFLE, EMOTE_ONESHOT_READY_UNARMED, EMOTE_ONESHOT_ROAR, EMOTE_ONESHOT_RUDE, EMOTE_ONESHOT_SALUTE, EMOTE_ONESHOT_SALUTE_NO_SHEATH, EMOTE_ONESHOT_SHOUT, EMOTE_ONESHOT_SHY, EMOTE_ONESHOT_SPECIALATTACK1H, EMOTE_ONESHOT_SPELL_CAST, EMOTE_ONESHOT_SPELL_CAST_OMNI, EMOTE_ONESHOT_SPELL_CAST_W_SOUND, EMOTE_ONESHOT_SPELL_PRECAST, EMOTE_ONESHOT_STOMP, EMOTE_ONESHOT_STUN, EMOTE_ONESHOT_SUBMERGE, EMOTE_ONESHOT_TALK, EMOTE_ONESHOT_TALK_NO_SHEATHE, EMOTE_ONESHOT_TRAIN, EMOTE_ONESHOT_USE_STANDING, EMOTE_ONESHOT_WAVE, EMOTE_ONESHOT_WAVE_NO_SHEATHE, EMOTE_ONESHOT_WORK_CHOPWOOD, EMOTE_ONESHOT_WORK_MINING, EMOTE_ONESHOT_WOUND, EMOTE_ONESHOT_WOUND_CRITICAL, EMOTE_ONESHOT_YES, EMOTE_STAND_STATE_NONE, EMOTE_STATE_APPLAUD, EMOTE_STATE_AT_EASE, EMOTE_STATE_ATTACK_UNARMED, EMOTE_STATE_CANNIBALIZE, EMOTE_STATE_COWER, EMOTE_STATE_CUSTOM_SPELL_01, EMOTE_STATE_CUSTOM_SPELL_02, EMOTE_STATE_CUSTOM_SPELL_03, EMOTE_STATE_CUSTOM_SPELL_04, EMOTE_STATE_CUSTOM_SPELL_05, EMOTE_STATE_CUSTOM_SPELL_08, EMOTE_STATE_DANCE, EMOTE_STATE_DANCE_CUSTOM, EMOTE_STATE_DANCESPECIAL, EMOTE_STATE_DEAD, EMOTE_STATE_DROWNED, EMOTE_STATE_EAT, EMOTE_STATE_EAT_NO_SHEATHE, EMOTE_STATE_EXCLAIM, EMOTE_STATE_FALL, EMOTE_STATE_FISHING, EMOTE_STATE_FLY_FALL, EMOTE_STATE_FLY_SIT_GROUND, EMOTE_STATE_FLYFALL, EMOTE_STATE_FLYGRABCLOSED, EMOTE_STATE_HOLD_BOW, EMOTE_STATE_HOLD_JOUST, EMOTE_STATE_HOLD_RIFLE, EMOTE_STATE_HOLD_THROWN, EMOTE_STATE_KNEEL, EMOTE_STATE_LAUGH, EMOTE_STATE_LOOT, EMOTE_STATE_MOUNT, EMOTE_STATE_NONE, EMOTE_STATE_POINT, EMOTE_STATE_READY1H, EMOTE_STATE_READY2H, EMOTE_STATE_READY2HL, EMOTE_STATE_READY_BOW, EMOTE_STATE_READY_RIFLE, EMOTE_STATE_READY_SPELL_OMNI, EMOTE_STATE_READY_THROWN, EMOTE_STATE_READY_UNARMED, EMOTE_STATE_READYJOUST, EMOTE_STATE_ROAR, EMOTE_STATE_SIT, EMOTE_STATE_SIT_CHAIR_HIGH, EMOTE_STATE_SIT_CHAIR_LOW, EMOTE_STATE_SIT_CHAIR_MED, EMOTE_STATE_SLEEP, EMOTE_STATE_SPECIAL_UNARMED, EMOTE_STATE_SPELL_CHANNEL_DIRECTED, EMOTE_STATE_SPELL_CHANNEL_OMNI, EMOTE_STATE_SPELL_KNEEL_START, EMOTE_STATE_SPELL_PRECAST, EMOTE_STATE_SPELLEFFECT_HOLD, EMOTE_STATE_STAND, EMOTE_STATE_STEALTH_STAND, EMOTE_STATE_STRANGULATE, EMOTE_STATE_STUN, EMOTE_STATE_STUN_NO_SHEATHE, EMOTE_STATE_SUBMERGED, EMOTE_STATE_SUBMERGED_NEW, EMOTE_STATE_SWIM_IDLE, EMOTE_STATE_TALK, EMOTE_STATE_USE_STANDING, EMOTE_STATE_USE_STANDING_NO_SHEATHE, EMOTE_STATE_WALK_BACKWARDS, EMOTE_STATE_WHIRLWIND, EMOTE_STATE_WORK, EMOTE_STATE_WORK_CHOPWOOD, EMOTE_STATE_WORK_MINING, and EMOTE_STATE_WORK_SHEATHED.

◆ FromIndex() [32/32]

AC_API_EXPORT ChatMsg EnumUtils< ChatMsg >::FromIndex ( std::size_t  index)
2626{
2627 switch (index)
2628 {
2629 case 0: return CHAT_MSG_ADDON;
2630 case 1: return CHAT_MSG_SYSTEM;
2631 case 2: return CHAT_MSG_SAY;
2632 case 3: return CHAT_MSG_PARTY;
2633 case 4: return CHAT_MSG_RAID;
2634 case 5: return CHAT_MSG_GUILD;
2635 case 6: return CHAT_MSG_OFFICER;
2636 case 7: return CHAT_MSG_YELL;
2637 case 8: return CHAT_MSG_WHISPER;
2638 case 9: return CHAT_MSG_WHISPER_FOREIGN;
2639 case 10: return CHAT_MSG_WHISPER_INFORM;
2640 case 11: return CHAT_MSG_EMOTE;
2641 case 12: return CHAT_MSG_TEXT_EMOTE;
2642 case 13: return CHAT_MSG_MONSTER_SAY;
2643 case 14: return CHAT_MSG_MONSTER_PARTY;
2644 case 15: return CHAT_MSG_MONSTER_YELL;
2645 case 16: return CHAT_MSG_MONSTER_WHISPER;
2646 case 17: return CHAT_MSG_MONSTER_EMOTE;
2647 case 18: return CHAT_MSG_CHANNEL;
2648 case 19: return CHAT_MSG_CHANNEL_JOIN;
2649 case 20: return CHAT_MSG_CHANNEL_LEAVE;
2650 case 21: return CHAT_MSG_CHANNEL_LIST;
2651 case 22: return CHAT_MSG_CHANNEL_NOTICE;
2652 case 23: return CHAT_MSG_CHANNEL_NOTICE_USER;
2653 case 24: return CHAT_MSG_AFK;
2654 case 25: return CHAT_MSG_DND;
2655 case 26: return CHAT_MSG_IGNORED;
2656 case 27: return CHAT_MSG_SKILL;
2657 case 28: return CHAT_MSG_LOOT;
2658 case 29: return CHAT_MSG_MONEY;
2659 case 30: return CHAT_MSG_OPENING;
2660 case 31: return CHAT_MSG_TRADESKILLS;
2661 case 32: return CHAT_MSG_PET_INFO;
2662 case 33: return CHAT_MSG_COMBAT_MISC_INFO;
2663 case 34: return CHAT_MSG_COMBAT_XP_GAIN;
2664 case 35: return CHAT_MSG_COMBAT_HONOR_GAIN;
2665 case 36: return CHAT_MSG_COMBAT_FACTION_CHANGE;
2666 case 37: return CHAT_MSG_BG_SYSTEM_NEUTRAL;
2667 case 38: return CHAT_MSG_BG_SYSTEM_ALLIANCE;
2668 case 39: return CHAT_MSG_BG_SYSTEM_HORDE;
2669 case 40: return CHAT_MSG_RAID_LEADER;
2670 case 41: return CHAT_MSG_RAID_WARNING;
2671 case 42: return CHAT_MSG_RAID_BOSS_EMOTE;
2672 case 43: return CHAT_MSG_RAID_BOSS_WHISPER;
2673 case 44: return CHAT_MSG_FILTERED;
2674 case 45: return CHAT_MSG_BATTLEGROUND;
2675 case 46: return CHAT_MSG_BATTLEGROUND_LEADER;
2676 case 47: return CHAT_MSG_RESTRICTED;
2677 case 48: return CHAT_MSG_BATTLENET;
2678 case 49: return CHAT_MSG_ACHIEVEMENT;
2679 case 50: return CHAT_MSG_GUILD_ACHIEVEMENT;
2680 case 51: return CHAT_MSG_ARENA_POINTS;
2681 case 52: return CHAT_MSG_PARTY_LEADER;
2682 default: throw std::out_of_range("index");
2683 }
2684}
@ CHAT_MSG_RAID_WARNING
Definition: SharedDefines.h:3192
@ CHAT_MSG_IGNORED
Definition: SharedDefines.h:3177
@ CHAT_MSG_RAID
Definition: SharedDefines.h:3155
@ CHAT_MSG_MONSTER_WHISPER
Definition: SharedDefines.h:3167
@ CHAT_MSG_TRADESKILLS
Definition: SharedDefines.h:3182
@ CHAT_MSG_TEXT_EMOTE
Definition: SharedDefines.h:3163
@ CHAT_MSG_SAY
Definition: SharedDefines.h:3153
@ CHAT_MSG_RAID_BOSS_WHISPER
Definition: SharedDefines.h:3194
@ CHAT_MSG_COMBAT_XP_GAIN
Definition: SharedDefines.h:3185
@ CHAT_MSG_WHISPER_FOREIGN
Definition: SharedDefines.h:3160
@ CHAT_MSG_GUILD_ACHIEVEMENT
Definition: SharedDefines.h:3201
@ CHAT_MSG_BG_SYSTEM_ALLIANCE
Definition: SharedDefines.h:3189
@ CHAT_MSG_PARTY_LEADER
Definition: SharedDefines.h:3203
@ CHAT_MSG_RAID_LEADER
Definition: SharedDefines.h:3191
@ CHAT_MSG_DND
Definition: SharedDefines.h:3176
@ CHAT_MSG_CHANNEL_LEAVE
Definition: SharedDefines.h:3171
@ CHAT_MSG_CHANNEL_NOTICE
Definition: SharedDefines.h:3173
@ CHAT_MSG_WHISPER_INFORM
Definition: SharedDefines.h:3161
@ CHAT_MSG_YELL
Definition: SharedDefines.h:3158
@ CHAT_MSG_PET_INFO
Definition: SharedDefines.h:3183
@ CHAT_MSG_ARENA_POINTS
Definition: SharedDefines.h:3202
@ CHAT_MSG_PARTY
Definition: SharedDefines.h:3154
@ CHAT_MSG_WHISPER
Definition: SharedDefines.h:3159
@ CHAT_MSG_EMOTE
Definition: SharedDefines.h:3162
@ CHAT_MSG_OPENING
Definition: SharedDefines.h:3181
@ CHAT_MSG_GUILD
Definition: SharedDefines.h:3156
@ CHAT_MSG_MONSTER_PARTY
Definition: SharedDefines.h:3165
@ CHAT_MSG_SYSTEM
Definition: SharedDefines.h:3152
@ CHAT_MSG_FILTERED
Definition: SharedDefines.h:3195
@ CHAT_MSG_CHANNEL_LIST
Definition: SharedDefines.h:3172
@ CHAT_MSG_OFFICER
Definition: SharedDefines.h:3157
@ CHAT_MSG_ACHIEVEMENT
Definition: SharedDefines.h:3200
@ CHAT_MSG_RAID_BOSS_EMOTE
Definition: SharedDefines.h:3193
@ CHAT_MSG_RESTRICTED
Definition: SharedDefines.h:3198
@ CHAT_MSG_BATTLENET
Definition: SharedDefines.h:3199
@ CHAT_MSG_MONSTER_EMOTE
Definition: SharedDefines.h:3168
@ CHAT_MSG_CHANNEL_JOIN
Definition: SharedDefines.h:3170
@ CHAT_MSG_COMBAT_HONOR_GAIN
Definition: SharedDefines.h:3186
@ CHAT_MSG_AFK
Definition: SharedDefines.h:3175
@ CHAT_MSG_ADDON
Definition: SharedDefines.h:3151
@ CHAT_MSG_BATTLEGROUND
Definition: SharedDefines.h:3196
@ CHAT_MSG_BATTLEGROUND_LEADER
Definition: SharedDefines.h:3197
@ CHAT_MSG_MONSTER_SAY
Definition: SharedDefines.h:3164
@ CHAT_MSG_MONSTER_YELL
Definition: SharedDefines.h:3166
@ CHAT_MSG_BG_SYSTEM_HORDE
Definition: SharedDefines.h:3190
@ CHAT_MSG_COMBAT_FACTION_CHANGE
Definition: SharedDefines.h:3187
@ CHAT_MSG_SKILL
Definition: SharedDefines.h:3178
@ CHAT_MSG_CHANNEL_NOTICE_USER
Definition: SharedDefines.h:3174
@ CHAT_MSG_LOOT
Definition: SharedDefines.h:3179
@ CHAT_MSG_MONEY
Definition: SharedDefines.h:3180
@ CHAT_MSG_BG_SYSTEM_NEUTRAL
Definition: SharedDefines.h:3188
@ CHAT_MSG_CHANNEL
Definition: SharedDefines.h:3169
@ CHAT_MSG_COMBAT_MISC_INFO
Definition: SharedDefines.h:3184

References CHAT_MSG_ACHIEVEMENT, CHAT_MSG_ADDON, CHAT_MSG_AFK, CHAT_MSG_ARENA_POINTS, CHAT_MSG_BATTLEGROUND, CHAT_MSG_BATTLEGROUND_LEADER, CHAT_MSG_BATTLENET, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, CHAT_MSG_CHANNEL, CHAT_MSG_CHANNEL_JOIN, CHAT_MSG_CHANNEL_LEAVE, CHAT_MSG_CHANNEL_LIST, CHAT_MSG_CHANNEL_NOTICE, CHAT_MSG_CHANNEL_NOTICE_USER, CHAT_MSG_COMBAT_FACTION_CHANGE, CHAT_MSG_COMBAT_HONOR_GAIN, CHAT_MSG_COMBAT_MISC_INFO, CHAT_MSG_COMBAT_XP_GAIN, CHAT_MSG_DND, CHAT_MSG_EMOTE, CHAT_MSG_FILTERED, CHAT_MSG_GUILD, CHAT_MSG_GUILD_ACHIEVEMENT, CHAT_MSG_IGNORED, CHAT_MSG_LOOT, CHAT_MSG_MONEY, CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_MONSTER_PARTY, CHAT_MSG_MONSTER_SAY, CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_MONSTER_YELL, CHAT_MSG_OFFICER, CHAT_MSG_OPENING, CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER, CHAT_MSG_PET_INFO, CHAT_MSG_RAID, CHAT_MSG_RAID_BOSS_EMOTE, CHAT_MSG_RAID_BOSS_WHISPER, CHAT_MSG_RAID_LEADER, CHAT_MSG_RAID_WARNING, CHAT_MSG_RESTRICTED, CHAT_MSG_SAY, CHAT_MSG_SKILL, CHAT_MSG_SYSTEM, CHAT_MSG_TEXT_EMOTE, CHAT_MSG_TRADESKILLS, CHAT_MSG_WHISPER, CHAT_MSG_WHISPER_FOREIGN, CHAT_MSG_WHISPER_INFORM, and CHAT_MSG_YELL.

◆ IsValid() [1/2]

template<typename Enum >
static bool EnumUtils::IsValid ( Enum  value)
inlinestatic
60 {
61 try
62 {
64 return true;
65 }
66 catch (...)
67 {
68 return false;
69 }
70 }
static std::size_t ToIndex(Enum index)

References Acore::Impl::EnumUtilsImpl::EnumUtils< Enum >::ToIndex().

◆ IsValid() [2/2]

template<typename Enum >
static bool EnumUtils::IsValid ( std::underlying_type_t< Enum >  value)
inlinestatic
73{ return IsValid(static_cast<Enum>(value)); }
static bool IsValid(Enum value)
Definition: SmartEnum.h:59

References IsValid().

Referenced by IsValid().

◆ Iterate()

template<typename Enum >
static Acore::IteratorPair< Iterator< Enum > > EnumUtils::Iterate ( )
inlinestatic
120{ return { Begin<Enum>(), End<Enum>() }; }

◆ ToConstant()

template<typename Enum >
static char const * EnumUtils::ToConstant ( Enum  value)
inlinestatic
123{ return ToString(value).Constant; }
char const *const Constant
Definition: SmartEnum.h:27
static EnumText ToString(Enum value)
Definition: SmartEnum.h:52

References EnumText::Constant, and ToString().

Referenced by debug_commandscript::HandleDebugAnimCommand().

◆ ToDescription()

template<typename Enum >
static char const * EnumUtils::ToDescription ( Enum  value)
inlinestatic
129{ return ToString(value).Description; }
char const *const Description
Definition: SmartEnum.h:31

References EnumText::Description, and ToString().

◆ ToIndex() [1/32]

AC_API_EXPORT std::size_t EnumUtils< AppenderFlags >::ToIndex ( AppenderFlags  value)
164{
165 switch (value)
166 {
167 case APPENDER_FLAGS_NONE: return 0;
168 case APPENDER_FLAGS_PREFIX_TIMESTAMP: return 1;
169 case APPENDER_FLAGS_PREFIX_LOGLEVEL: return 2;
171 case APPENDER_FLAGS_USE_TIMESTAMP: return 4;
172 case APPENDER_FLAGS_MAKE_FILE_BACKUP: return 5;
173 default: throw std::out_of_range("value");
174 }
175}

References APPENDER_FLAGS_MAKE_FILE_BACKUP, APPENDER_FLAGS_NONE, APPENDER_FLAGS_PREFIX_LOGFILTERTYPE, APPENDER_FLAGS_PREFIX_LOGLEVEL, APPENDER_FLAGS_PREFIX_TIMESTAMP, and APPENDER_FLAGS_USE_TIMESTAMP.

◆ ToIndex() [2/32]

AC_API_EXPORT std::size_t EnumUtils< AppenderType >::ToIndex ( AppenderType  value)
115{
116 switch (value)
117 {
118 case APPENDER_NONE: return 0;
119 case APPENDER_CONSOLE: return 1;
120 case APPENDER_FILE: return 2;
121 case APPENDER_DB: return 3;
122 default: throw std::out_of_range("value");
123 }
124}

References APPENDER_CONSOLE, APPENDER_DB, APPENDER_FILE, and APPENDER_NONE.

◆ ToIndex() [3/32]

AC_API_EXPORT std::size_t EnumUtils< ArenaTeamTypes >::ToIndex ( ArenaTeamTypes  value)
58{
59 switch (value)
60 {
61 case ARENA_TEAM_2v2: return 0;
62 case ARENA_TEAM_3v3: return 1;
63 case ARENA_TEAM_5v5: return 2;
64 default: throw std::out_of_range("value");
65 }
66}

References ARENA_TEAM_2v2, ARENA_TEAM_3v3, and ARENA_TEAM_5v5.

◆ ToIndex() [4/32]

AC_API_EXPORT std::size_t EnumUtils< AuraStateType >::ToIndex ( AuraStateType  value)
1847{
1848 switch (value)
1849 {
1850 case AURA_STATE_NONE: return 0;
1851 case AURA_STATE_DEFENSE: return 1;
1852 case AURA_STATE_HEALTHLESS_20_PERCENT: return 2;
1853 case AURA_STATE_BERSERKING: return 3;
1854 case AURA_STATE_FROZEN: return 4;
1855 case AURA_STATE_JUDGEMENT: return 5;
1856 case AURA_STATE_HUNTER_PARRY: return 6;
1857 case AURA_STATE_WARRIOR_VICTORY_RUSH: return 7;
1858 case AURA_STATE_FAERIE_FIRE: return 8;
1859 case AURA_STATE_HEALTHLESS_35_PERCENT: return 9;
1860 case AURA_STATE_CONFLAGRATE: return 10;
1861 case AURA_STATE_SWIFTMEND: return 11;
1862 case AURA_STATE_DEADLY_POISON: return 12;
1863 case AURA_STATE_ENRAGE: return 13;
1864 case AURA_STATE_BLEEDING: return 14;
1865 case AURA_STATE_UNKNOWN19: return 15;
1866 case AURA_STATE_UNKNOWN22: return 16;
1867 case AURA_STATE_HEALTH_ABOVE_75_PERCENT: return 17;
1868 default: throw std::out_of_range("value");
1869 }
1870}

References AURA_STATE_BERSERKING, AURA_STATE_BLEEDING, AURA_STATE_CONFLAGRATE, AURA_STATE_DEADLY_POISON, AURA_STATE_DEFENSE, AURA_STATE_ENRAGE, AURA_STATE_FAERIE_FIRE, AURA_STATE_FROZEN, AURA_STATE_HEALTH_ABOVE_75_PERCENT, AURA_STATE_HEALTHLESS_20_PERCENT, AURA_STATE_HEALTHLESS_35_PERCENT, AURA_STATE_HUNTER_PARRY, AURA_STATE_JUDGEMENT, AURA_STATE_NONE, AURA_STATE_SWIFTMEND, AURA_STATE_UNKNOWN19, AURA_STATE_UNKNOWN22, and AURA_STATE_WARRIOR_VICTORY_RUSH.

◆ ToIndex() [5/32]

AC_API_EXPORT std::size_t EnumUtils< BuyResult >::ToIndex ( BuyResult  value)
367{
368 switch (value)
369 {
370 case BUY_ERR_CANT_FIND_ITEM: return 0;
371 case BUY_ERR_ITEM_ALREADY_SOLD: return 1;
372 case BUY_ERR_NOT_ENOUGHT_MONEY: return 2;
373 case BUY_ERR_SELLER_DONT_LIKE_YOU: return 3;
374 case BUY_ERR_DISTANCE_TOO_FAR: return 4;
375 case BUY_ERR_ITEM_SOLD_OUT: return 5;
376 case BUY_ERR_CANT_CARRY_MORE: return 6;
377 case BUY_ERR_RANK_REQUIRE: return 7;
378 case BUY_ERR_REPUTATION_REQUIRE: return 8;
379 default: throw std::out_of_range("value");
380 }
381}

References BUY_ERR_CANT_CARRY_MORE, BUY_ERR_CANT_FIND_ITEM, BUY_ERR_DISTANCE_TOO_FAR, BUY_ERR_ITEM_ALREADY_SOLD, BUY_ERR_ITEM_SOLD_OUT, BUY_ERR_NOT_ENOUGHT_MONEY, BUY_ERR_RANK_REQUIRE, BUY_ERR_REPUTATION_REQUIRE, and BUY_ERR_SELLER_DONT_LIKE_YOU.

◆ ToIndex() [6/32]

AC_API_EXPORT std::size_t EnumUtils< ChatMsg >::ToIndex ( ChatMsg  value)
2688{
2689 switch (value)
2690 {
2691 case CHAT_MSG_ADDON: return 0;
2692 case CHAT_MSG_SYSTEM: return 1;
2693 case CHAT_MSG_SAY: return 2;
2694 case CHAT_MSG_PARTY: return 3;
2695 case CHAT_MSG_RAID: return 4;
2696 case CHAT_MSG_GUILD: return 5;
2697 case CHAT_MSG_OFFICER: return 6;
2698 case CHAT_MSG_YELL: return 7;
2699 case CHAT_MSG_WHISPER: return 8;
2700 case CHAT_MSG_WHISPER_FOREIGN: return 9;
2701 case CHAT_MSG_WHISPER_INFORM: return 10;
2702 case CHAT_MSG_EMOTE: return 11;
2703 case CHAT_MSG_TEXT_EMOTE: return 12;
2704 case CHAT_MSG_MONSTER_SAY: return 13;
2705 case CHAT_MSG_MONSTER_PARTY: return 14;
2706 case CHAT_MSG_MONSTER_YELL: return 15;
2707 case CHAT_MSG_MONSTER_WHISPER: return 16;
2708 case CHAT_MSG_MONSTER_EMOTE: return 17;
2709 case CHAT_MSG_CHANNEL: return 18;
2710 case CHAT_MSG_CHANNEL_JOIN: return 19;
2711 case CHAT_MSG_CHANNEL_LEAVE: return 20;
2712 case CHAT_MSG_CHANNEL_LIST: return 21;
2713 case CHAT_MSG_CHANNEL_NOTICE: return 22;
2714 case CHAT_MSG_CHANNEL_NOTICE_USER: return 23;
2715 case CHAT_MSG_AFK: return 24;
2716 case CHAT_MSG_DND: return 25;
2717 case CHAT_MSG_IGNORED: return 26;
2718 case CHAT_MSG_SKILL: return 27;
2719 case CHAT_MSG_LOOT: return 28;
2720 case CHAT_MSG_MONEY: return 29;
2721 case CHAT_MSG_OPENING: return 30;
2722 case CHAT_MSG_TRADESKILLS: return 31;
2723 case CHAT_MSG_PET_INFO: return 32;
2724 case CHAT_MSG_COMBAT_MISC_INFO: return 33;
2725 case CHAT_MSG_COMBAT_XP_GAIN: return 34;
2726 case CHAT_MSG_COMBAT_HONOR_GAIN: return 35;
2727 case CHAT_MSG_COMBAT_FACTION_CHANGE: return 36;
2728 case CHAT_MSG_BG_SYSTEM_NEUTRAL: return 37;
2729 case CHAT_MSG_BG_SYSTEM_ALLIANCE: return 38;
2730 case CHAT_MSG_BG_SYSTEM_HORDE: return 39;
2731 case CHAT_MSG_RAID_LEADER: return 40;
2732 case CHAT_MSG_RAID_WARNING: return 41;
2733 case CHAT_MSG_RAID_BOSS_EMOTE: return 42;
2734 case CHAT_MSG_RAID_BOSS_WHISPER: return 43;
2735 case CHAT_MSG_FILTERED: return 44;
2736 case CHAT_MSG_BATTLEGROUND: return 45;
2737 case CHAT_MSG_BATTLEGROUND_LEADER: return 46;
2738 case CHAT_MSG_RESTRICTED: return 47;
2739 case CHAT_MSG_BATTLENET: return 48;
2740 case CHAT_MSG_ACHIEVEMENT: return 49;
2741 case CHAT_MSG_GUILD_ACHIEVEMENT: return 50;
2742 case CHAT_MSG_ARENA_POINTS: return 51;
2743 case CHAT_MSG_PARTY_LEADER: return 52;
2744 default: throw std::out_of_range("value");
2745 }
2746}

References CHAT_MSG_ACHIEVEMENT, CHAT_MSG_ADDON, CHAT_MSG_AFK, CHAT_MSG_ARENA_POINTS, CHAT_MSG_BATTLEGROUND, CHAT_MSG_BATTLEGROUND_LEADER, CHAT_MSG_BATTLENET, CHAT_MSG_BG_SYSTEM_ALLIANCE, CHAT_MSG_BG_SYSTEM_HORDE, CHAT_MSG_BG_SYSTEM_NEUTRAL, CHAT_MSG_CHANNEL, CHAT_MSG_CHANNEL_JOIN, CHAT_MSG_CHANNEL_LEAVE, CHAT_MSG_CHANNEL_LIST, CHAT_MSG_CHANNEL_NOTICE, CHAT_MSG_CHANNEL_NOTICE_USER, CHAT_MSG_COMBAT_FACTION_CHANGE, CHAT_MSG_COMBAT_HONOR_GAIN, CHAT_MSG_COMBAT_MISC_INFO, CHAT_MSG_COMBAT_XP_GAIN, CHAT_MSG_DND, CHAT_MSG_EMOTE, CHAT_MSG_FILTERED, CHAT_MSG_GUILD, CHAT_MSG_GUILD_ACHIEVEMENT, CHAT_MSG_IGNORED, CHAT_MSG_LOOT, CHAT_MSG_MONEY, CHAT_MSG_MONSTER_EMOTE, CHAT_MSG_MONSTER_PARTY, CHAT_MSG_MONSTER_SAY, CHAT_MSG_MONSTER_WHISPER, CHAT_MSG_MONSTER_YELL, CHAT_MSG_OFFICER, CHAT_MSG_OPENING, CHAT_MSG_PARTY, CHAT_MSG_PARTY_LEADER, CHAT_MSG_PET_INFO, CHAT_MSG_RAID, CHAT_MSG_RAID_BOSS_EMOTE, CHAT_MSG_RAID_BOSS_WHISPER, CHAT_MSG_RAID_LEADER, CHAT_MSG_RAID_WARNING, CHAT_MSG_RESTRICTED, CHAT_MSG_SAY, CHAT_MSG_SKILL, CHAT_MSG_SYSTEM, CHAT_MSG_TEXT_EMOTE, CHAT_MSG_TRADESKILLS, CHAT_MSG_WHISPER, CHAT_MSG_WHISPER_FOREIGN, CHAT_MSG_WHISPER_INFORM, and CHAT_MSG_YELL.

◆ ToIndex() [7/32]

AC_API_EXPORT std::size_t EnumUtils< ChatNotify >::ToIndex ( ChatNotify  value)
124{
125 switch (value)
126 {
127 case CHAT_JOINED_NOTICE: return 0;
128 case CHAT_LEFT_NOTICE: return 1;
129 case CHAT_YOU_JOINED_NOTICE: return 2;
130 case CHAT_YOU_LEFT_NOTICE: return 3;
131 case CHAT_WRONG_PASSWORD_NOTICE: return 4;
132 case CHAT_NOT_MEMBER_NOTICE: return 5;
133 case CHAT_NOT_MODERATOR_NOTICE: return 6;
134 case CHAT_PASSWORD_CHANGED_NOTICE: return 7;
135 case CHAT_OWNER_CHANGED_NOTICE: return 8;
136 case CHAT_PLAYER_NOT_FOUND_NOTICE: return 9;
137 case CHAT_NOT_OWNER_NOTICE: return 10;
138 case CHAT_CHANNEL_OWNER_NOTICE: return 11;
139 case CHAT_MODE_CHANGE_NOTICE: return 12;
140 case CHAT_ANNOUNCEMENTS_ON_NOTICE: return 13;
141 case CHAT_ANNOUNCEMENTS_OFF_NOTICE: return 14;
142 case CHAT_MODERATION_ON_NOTICE: return 15;
143 case CHAT_MODERATION_OFF_NOTICE: return 16;
144 case CHAT_MUTED_NOTICE: return 17;
145 case CHAT_PLAYER_KICKED_NOTICE: return 18;
146 case CHAT_BANNED_NOTICE: return 19;
147 case CHAT_PLAYER_BANNED_NOTICE: return 20;
148 case CHAT_PLAYER_UNBANNED_NOTICE: return 21;
149 case CHAT_PLAYER_NOT_BANNED_NOTICE: return 22;
150 case CHAT_PLAYER_ALREADY_MEMBER_NOTICE: return 23;
151 case CHAT_INVITE_NOTICE: return 24;
152 case CHAT_INVITE_WRONG_FACTION_NOTICE: return 25;
153 case CHAT_WRONG_FACTION_NOTICE: return 26;
154 case CHAT_INVALID_NAME_NOTICE: return 27;
155 case CHAT_NOT_MODERATED_NOTICE: return 28;
156 case CHAT_PLAYER_INVITED_NOTICE: return 29;
157 case CHAT_PLAYER_INVITE_BANNED_NOTICE: return 30;
158 case CHAT_THROTTLED_NOTICE: return 31;
159 case CHAT_NOT_IN_AREA_NOTICE: return 32;
160 case CHAT_NOT_IN_LFG_NOTICE: return 33;
161 case CHAT_VOICE_ON_NOTICE: return 34;
162 case CHAT_VOICE_OFF_NOTICE: return 35;
163 default: throw std::out_of_range("value");
164 }
165}

References CHAT_ANNOUNCEMENTS_OFF_NOTICE, CHAT_ANNOUNCEMENTS_ON_NOTICE, CHAT_BANNED_NOTICE, CHAT_CHANNEL_OWNER_NOTICE, CHAT_INVALID_NAME_NOTICE, CHAT_INVITE_NOTICE, CHAT_INVITE_WRONG_FACTION_NOTICE, CHAT_JOINED_NOTICE, CHAT_LEFT_NOTICE, CHAT_MODE_CHANGE_NOTICE, CHAT_MODERATION_OFF_NOTICE, CHAT_MODERATION_ON_NOTICE, CHAT_MUTED_NOTICE, CHAT_NOT_IN_AREA_NOTICE, CHAT_NOT_IN_LFG_NOTICE, CHAT_NOT_MEMBER_NOTICE, CHAT_NOT_MODERATED_NOTICE, CHAT_NOT_MODERATOR_NOTICE, CHAT_NOT_OWNER_NOTICE, CHAT_OWNER_CHANGED_NOTICE, CHAT_PASSWORD_CHANGED_NOTICE, CHAT_PLAYER_ALREADY_MEMBER_NOTICE, CHAT_PLAYER_BANNED_NOTICE, CHAT_PLAYER_INVITE_BANNED_NOTICE, CHAT_PLAYER_INVITED_NOTICE, CHAT_PLAYER_KICKED_NOTICE, CHAT_PLAYER_NOT_BANNED_NOTICE, CHAT_PLAYER_NOT_FOUND_NOTICE, CHAT_PLAYER_UNBANNED_NOTICE, CHAT_THROTTLED_NOTICE, CHAT_VOICE_OFF_NOTICE, CHAT_VOICE_ON_NOTICE, CHAT_WRONG_FACTION_NOTICE, CHAT_WRONG_PASSWORD_NOTICE, CHAT_YOU_JOINED_NOTICE, and CHAT_YOU_LEFT_NOTICE.

◆ ToIndex() [8/32]

AC_API_EXPORT std::size_t EnumUtils< Classes >::ToIndex ( Classes  value)
136{
137 switch (value)
138 {
139 case CLASS_WARRIOR: return 0;
140 case CLASS_PALADIN: return 1;
141 case CLASS_HUNTER: return 2;
142 case CLASS_ROGUE: return 3;
143 case CLASS_PRIEST: return 4;
144 case CLASS_DEATH_KNIGHT: return 5;
145 case CLASS_SHAMAN: return 6;
146 case CLASS_MAGE: return 7;
147 case CLASS_WARLOCK: return 8;
148 case CLASS_DRUID: return 9;
149 default: throw std::out_of_range("value");
150 }
151}

References CLASS_DEATH_KNIGHT, CLASS_DRUID, CLASS_HUNTER, CLASS_MAGE, CLASS_PALADIN, CLASS_PRIEST, CLASS_ROGUE, CLASS_SHAMAN, CLASS_WARLOCK, and CLASS_WARRIOR.

◆ ToIndex() [9/32]

AC_API_EXPORT std::size_t EnumUtils< ColorTypes >::ToIndex ( ColorTypes  value)
82{
83 switch (value)
84 {
85 case BLACK: return 0;
86 case RED: return 1;
87 case GREEN: return 2;
88 case BROWN: return 3;
89 case BLUE: return 4;
90 case MAGENTA: return 5;
91 case CYAN: return 6;
92 case GREY: return 7;
93 case YELLOW: return 8;
94 case LRED: return 9;
95 case LGREEN: return 10;
96 case LBLUE: return 11;
97 case LMAGENTA: return 12;
98 case LCYAN: return 13;
99 case WHITE: return 14;
100 default: throw std::out_of_range("value");
101 }
102}

References BLACK, BLUE, BROWN, CYAN, GREEN, GREY, LBLUE, LCYAN, LGREEN, LMAGENTA, LRED, MAGENTA, RED, WHITE, and YELLOW.

◆ ToIndex() [10/32]

◆ ToIndex() [11/32]

AC_API_EXPORT std::size_t EnumUtils< CreatureFlagsExtra >::ToIndex ( CreatureFlagsExtra  value)
116{
117 switch (value)
118 {
120 case CREATURE_FLAG_EXTRA_CIVILIAN: return 1;
121 case CREATURE_FLAG_EXTRA_NO_PARRY: return 2;
123 case CREATURE_FLAG_EXTRA_NO_BLOCK: return 4;
125 case CREATURE_FLAG_EXTRA_NO_XP: return 6;
126 case CREATURE_FLAG_EXTRA_TRIGGER: return 7;
127 case CREATURE_FLAG_EXTRA_NO_TAUNT: return 8;