summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-22 16:17:03 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-22 16:17:03 +0300
commit2131f55532ee9e71b41de99aff0718346fb184c6 (patch)
tree1aa214c995d2d5a05d8a02cf6b35dc4c6129d687 /src/resources
parentabdb8299382a797728b8dac80f6e687c90fb07ab (diff)
downloadplus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.gz
plus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.bz2
plus-2131f55532ee9e71b41de99aff0718346fb184c6.tar.xz
plus-2131f55532ee9e71b41de99aff0718346fb184c6.zip
Move equipment window slots names mapping to id to separate file.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/equipmentslots.h91
1 files changed, 91 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
+ */
+
+#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