TrinityCore
enuminfo_AuctionHouseBot.cpp
Go to the documentation of this file.
1/*
2 * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "AuctionHouseBot.h"
19#include "Define.h"
20#include "SmartEnum.h"
21#include <stdexcept>
22
24{
25
26/************************************************************************\
27|* data for enum 'AuctionQuality' in 'AuctionHouseBot.h' auto-generated *|
28\************************************************************************/
29template <>
31{
32 switch (value)
33 {
34 case AUCTION_QUALITY_GRAY: return { "AUCTION_QUALITY_GRAY", "AUCTION_QUALITY_GRAY", "" };
35 case AUCTION_QUALITY_WHITE: return { "AUCTION_QUALITY_WHITE", "AUCTION_QUALITY_WHITE", "" };
36 case AUCTION_QUALITY_GREEN: return { "AUCTION_QUALITY_GREEN", "AUCTION_QUALITY_GREEN", "" };
37 case AUCTION_QUALITY_BLUE: return { "AUCTION_QUALITY_BLUE", "AUCTION_QUALITY_BLUE", "" };
38 case AUCTION_QUALITY_PURPLE: return { "AUCTION_QUALITY_PURPLE", "AUCTION_QUALITY_PURPLE", "" };
39 case AUCTION_QUALITY_ORANGE: return { "AUCTION_QUALITY_ORANGE", "AUCTION_QUALITY_ORANGE", "" };
40 case AUCTION_QUALITY_YELLOW: return { "AUCTION_QUALITY_YELLOW", "AUCTION_QUALITY_YELLOW", "" };
41 default: throw std::out_of_range("value");
42 }
43}
44
45template <>
47
48template <>
50{
51 switch (index)
52 {
53 case 0: return AUCTION_QUALITY_GRAY;
54 case 1: return AUCTION_QUALITY_WHITE;
55 case 2: return AUCTION_QUALITY_GREEN;
56 case 3: return AUCTION_QUALITY_BLUE;
57 case 4: return AUCTION_QUALITY_PURPLE;
58 case 5: return AUCTION_QUALITY_ORANGE;
59 case 6: return AUCTION_QUALITY_YELLOW;
60 default: throw std::out_of_range("index");
61 }
62}
63
64template <>
66{
67 switch (value)
68 {
69 case AUCTION_QUALITY_GRAY: return 0;
70 case AUCTION_QUALITY_WHITE: return 1;
71 case AUCTION_QUALITY_GREEN: return 2;
72 case AUCTION_QUALITY_BLUE: return 3;
73 case AUCTION_QUALITY_PURPLE: return 4;
74 case AUCTION_QUALITY_ORANGE: return 5;
75 case AUCTION_QUALITY_YELLOW: return 6;
76 default: throw std::out_of_range("value");
77 }
78}
79
80/**************************************************************************\
81|* data for enum 'AuctionHouseType' in 'AuctionHouseBot.h' auto-generated *|
82\**************************************************************************/
83template <>
85{
86 switch (value)
87 {
88 case AUCTION_HOUSE_NEUTRAL: return { "AUCTION_HOUSE_NEUTRAL", "AUCTION_HOUSE_NEUTRAL", "" };
89 case AUCTION_HOUSE_ALLIANCE: return { "AUCTION_HOUSE_ALLIANCE", "AUCTION_HOUSE_ALLIANCE", "" };
90 case AUCTION_HOUSE_HORDE: return { "AUCTION_HOUSE_HORDE", "AUCTION_HOUSE_HORDE", "" };
91 default: throw std::out_of_range("value");
92 }
93}
94
95template <>
97
98template <>
100{
101 switch (index)
102 {
103 case 0: return AUCTION_HOUSE_NEUTRAL;
104 case 1: return AUCTION_HOUSE_ALLIANCE;
105 case 2: return AUCTION_HOUSE_HORDE;
106 default: throw std::out_of_range("index");
107 }
108}
109
110template <>
112{
113 switch (value)
114 {
115 case AUCTION_HOUSE_NEUTRAL: return 0;
116 case AUCTION_HOUSE_ALLIANCE: return 1;
117 case AUCTION_HOUSE_HORDE: return 2;
118 default: throw std::out_of_range("value");
119 }
120}
121}
AuctionQuality
@ AUCTION_QUALITY_ORANGE
@ AUCTION_QUALITY_WHITE
@ AUCTION_QUALITY_PURPLE
@ AUCTION_QUALITY_BLUE
@ AUCTION_QUALITY_YELLOW
@ AUCTION_QUALITY_GREEN
@ AUCTION_QUALITY_GRAY
AuctionHouseType
@ AUCTION_HOUSE_NEUTRAL
@ AUCTION_HOUSE_HORDE
@ AUCTION_HOUSE_ALLIANCE
#define TC_API_EXPORT
Definition: Define.h:92
static size_t ToIndex(Enum index)
static EnumText ToString(Enum value)
static Enum FromIndex(size_t index)