From 1da80a3312ae865ed5d84271fc0cf53b82d87f15 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 9 Sep 2015 17:18:49 +0300 Subject: Show reason for item removing. --- src/enums/net/deleteitemreason.h | 41 +++++++++++++++++++++++++++++++++++++++ src/enums/resources/notifytypes.h | 9 +++++++++ 2 files changed, 50 insertions(+) create mode 100644 src/enums/net/deleteitemreason.h (limited to 'src/enums') diff --git a/src/enums/net/deleteitemreason.h b/src/enums/net/deleteitemreason.h new file mode 100644 index 000000000..8916f9fcc --- /dev/null +++ b/src/enums/net/deleteitemreason.h @@ -0,0 +1,41 @@ +/* + * The ManaPlus Client + * Copyright (C) 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_NET_DELETEITEMREASON_H +#define ENUMS_NET_DELETEITEMREASON_H +#ifdef EATHENA_SUPPORT + +#include "enums/simpletypes/enumdefines.h" + +enumStart(DeleteItemReason) +{ + Normal = 0, + SkillUse = 1, + FailRefine = 2, + MaterialChange = 3, + ToStorage = 4, + ToCart = 5, + Sold = 6, + Analysis = 7 +} +enumEnd(DeleteItemReason); + +#endif // EATHENA_SUPPORT +#endif // ENUMS_NET_DELETEITEMREASON_H diff --git a/src/enums/resources/notifytypes.h b/src/enums/resources/notifytypes.h index d60ada2ce..998e45ae8 100644 --- a/src/enums/resources/notifytypes.h +++ b/src/enums/resources/notifytypes.h @@ -204,6 +204,15 @@ namespace NotifyTypes UNIGNORE_PLAYER_UNKNOWN, IGNORE_PLAYER_TYPE_UNKNOWN, PET_CATCH_PROCESS, + DELETE_ITEM_NORMAL, + DELETE_ITEM_SKILL_USE, + DELETE_ITEM_FAIL_REFINE, + DELETE_ITEM_MATERIAL_CHANGE, + DELETE_ITEM_TO_STORAGE, + DELETE_ITEM_TO_CART, + DELETE_ITEM_SOLD, + DELETE_ITEM_ANALYSIS, + DELETE_ITEM_UNKNOWN, TYPE_END }; -- cgit v1.2.3-60-g2f50