From 2131f55532ee9e71b41de99aff0718346fb184c6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 22 Oct 2014 16:17:03 +0300 Subject: Move equipment window slots names mapping to id to separate file. --- src/resources/equipmentslots.h | 91 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 src/resources/equipmentslots.h (limited to 'src/resources') diff --git a/src/resources/equipmentslots.h b/src/resources/equipmentslots.h new file mode 100644 index 000000000..31373a8e4 --- /dev/null +++ b/src/resources/equipmentslots.h @@ -0,0 +1,91 @@ +/* + * The ManaPlus Client + * Copyright (C) 2004-2009 The Mana World Development Team + * Copyright (C) 2009-2010 The Mana Developers + * Copyright (C) 2011-2014 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 RESOURCES_EQUIPMENTSLOTS_H +#define RESOURCES_EQUIPMENTSLOTS_H + +#include "localconsts.h" + +struct EquipmentSlotMap final +{ + const char *const name; + const int id; +}; + +static const EquipmentSlotMap equipmentSlots[] = +{ + {"topclothes", 0}, + {"top", 0}, + {"torso", 0}, + {"body", 0}, + {"slot0", 0}, + {"glove", 1}, + {"gloves", 1}, + {"slot1", 1}, + {"hat", 2}, + {"hats", 2}, + {"slot2", 2}, + {"bottomclothes", 3}, + {"bottom", 3}, + {"pants", 3}, + {"slot3", 3}, + {"shoes", 4}, + {"boot", 4}, + {"boots", 4}, + {"slot4", 4}, + {"misc1", 5}, + {"cape", 5}, + {"slot5", 5}, + {"wings", 6}, + {"slot6", 6}, + {"misc2", 7}, + {"scarf", 7}, + {"scarfs", 7}, + {"slot7", 7}, + {"weapon", 8}, + {"weapons", 8}, + {"slot8", 8}, + {"shield", 9}, + {"shields", 9}, + {"slot9", 9}, + {"arrow", 10}, + {"arrows", 10}, + {"ammo", 10}, + {"slot10", 10}, + {"amulet", 11}, + {"amulets", 11}, + {"slot11", 11}, + {"ring", 12}, + {"rings", 12}, + {"slot12", 12}, + {"slot13", 13}, + {"slot14", 14}, + {"slot15", 15}, + {"slot16", 16}, + {"slot17", 17}, + {"slot18", 18}, + {"slot19", 19}, + {"slot20", 20}, + {"slot21", 21} +}; + +#endif // RESOURCES_EQUIPMENTSLOTS_H -- cgit v1.2.3-60-g2f50