diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-03 14:43:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-03 14:43:03 +0300 |
commit | 284acf8f76bd2201bd64b847a2564206f77a4278 (patch) | |
tree | d562014465ae69782a7a081689ee5917812a5e55 /src/resources/itemtypemapdata.h | |
parent | 5ccaffe607662610eb34d5a9043fb5fb7e068039 (diff) | |
download | mv-284acf8f76bd2201bd64b847a2564206f77a4278.tar.gz mv-284acf8f76bd2201bd64b847a2564206f77a4278.tar.bz2 mv-284acf8f76bd2201bd64b847a2564206f77a4278.tar.xz mv-284acf8f76bd2201bd64b847a2564206f77a4278.zip |
Move item type mapping into separate file.
Diffstat (limited to 'src/resources/itemtypemapdata.h')
-rw-r--r-- | src/resources/itemtypemapdata.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/resources/itemtypemapdata.h b/src/resources/itemtypemapdata.h new file mode 100644 index 000000000..c232dbe52 --- /dev/null +++ b/src/resources/itemtypemapdata.h @@ -0,0 +1,50 @@ +/* + * The ManaPlus Client + * Copyright (C) 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_ITEMTYPEMAPDATA_H +#define RESOURCES_ITEMTYPEMAPDATA_H + +#include "localconsts.h" + +#include "resources/itemtypemap.h" + +ItemTypeMap itemTypeMap[] = +{ + {"generic", ItemType::UNUSABLE}, + {"other", ItemType::UNUSABLE}, + {"usable", ItemType::USABLE}, + {"equip-1hand", ItemType::EQUIPMENT_ONE_HAND_WEAPON}, + {"equip-2hand", ItemType::EQUIPMENT_TWO_HANDS_WEAPON}, + {"equip-torso", ItemType::EQUIPMENT_TORSO}, + {"equip-arms", ItemType::EQUIPMENT_ARMS}, + {"equip-head", ItemType::EQUIPMENT_HEAD}, + {"equip-legs", ItemType::EQUIPMENT_LEGS}, + {"equip-shield", ItemType::EQUIPMENT_SHIELD}, + {"equip-ring", ItemType::EQUIPMENT_RING}, + {"equip-charm", ItemType::EQUIPMENT_CHARM}, + {"equip-necklace", ItemType::EQUIPMENT_NECKLACE}, + {"equip-neck", ItemType::EQUIPMENT_NECKLACE}, + {"equip-feet", ItemType::EQUIPMENT_FEET}, + {"equip-ammo", ItemType::EQUIPMENT_AMMO}, + {"racesprite", ItemType::SPRITE_RACE}, + {"hairsprite", ItemType::SPRITE_HAIR}, +}; + +#endif // RESOURCES_ITEMTYPEMAPDATA_H |