diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-05 16:46:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-05 17:55:52 +0300 |
commit | df5cdaf58478f3b6309b52c36b1696e5fe8dc157 (patch) | |
tree | 41d62b136d740307f12c527ea15a4743cc742954 /src/enums | |
parent | e8ae8fc61b88ee891d85c5612417e43e15bd823d (diff) | |
download | manaverse-df5cdaf58478f3b6309b52c36b1696e5fe8dc157.tar.gz manaverse-df5cdaf58478f3b6309b52c36b1696e5fe8dc157.tar.bz2 manaverse-df5cdaf58478f3b6309b52c36b1696e5fe8dc157.tar.xz manaverse-df5cdaf58478f3b6309b52c36b1696e5fe8dc157.zip |
Put badges into array in being.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/being/badgeindex.h | 40 | ||||
-rw-r--r-- | src/enums/simpletypes/enumdefines.h | 10 |
2 files changed, 50 insertions, 0 deletions
diff --git a/src/enums/being/badgeindex.h b/src/enums/being/badgeindex.h new file mode 100644 index 000000000..fefc5adff --- /dev/null +++ b/src/enums/being/badgeindex.h @@ -0,0 +1,40 @@ +/* + * The ManaPlus Client + * Copyright (C) 2011-2015 The ManaPlus Developers + * + * This file is part of The ManaPlus Client. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef ENUMS_BEING_BADGEINDEX_H +#define ENUMS_BEING_BADGEINDEX_H + +#include "enums/simpletypes/enumdefines.h" + +enum2Start(BadgeIndex) +{ + Away = 0, + Inactive = 1, + Team = 2, + Shop = 3, + Gm = 4, + Guild = 5, + Party = 6, + Name = 7, + BadgeIndexSize, +} +enum2End(BadgeIndex); + +#endif // ENUMS_BEING_BADGEINDEX_H diff --git a/src/enums/simpletypes/enumdefines.h b/src/enums/simpletypes/enumdefines.h index 95ccad764..a9165df89 100644 --- a/src/enums/simpletypes/enumdefines.h +++ b/src/enums/simpletypes/enumdefines.h @@ -43,4 +43,14 @@ #endif // ADVGCC +#define enum2Start(name) \ + namespace name \ + { \ + enum T + +#define enum2End(name) \ + ;\ + } \ + typedef name::T name##T + #endif // ENUMS_SIMPLETYPES_ENUMDEFINES_H |