From df5cdaf58478f3b6309b52c36b1696e5fe8dc157 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 5 Sep 2015 16:46:03 +0300 Subject: Put badges into array in being. --- src/enums/being/badgeindex.h | 40 +++++++++++++++++++++++++++++++++++++ src/enums/simpletypes/enumdefines.h | 10 ++++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/enums/being/badgeindex.h (limited to 'src/enums') 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 . + */ + +#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 -- cgit v1.2.3-60-g2f50