From a3977169437e507b963a0abc2ede5478cc1be320 Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 22 Feb 2016 02:26:35 +0100 Subject: Added definitions of struct itemlist - To be used in various non-clif functions that right now take client data buffers directly. Signed-off-by: Haru --- src/map/itemdb.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/map/itemdb.h b/src/map/itemdb.h index 23a4bb1ca..47446d617 100644 --- a/src/map/itemdb.h +++ b/src/map/itemdb.h @@ -395,6 +395,14 @@ enum ItemNouseRestrictions { INR_ALL = 0x1 ///< Sum of all the above values }; +/** Convenience item list (entry) used in various functions */ +struct itemlist_entry { + int id; ///< Item ID or (inventory) index + int16 amount; ///< Amount +}; +/** Convenience item list used in various functions */ +VECTOR_STRUCT_DECL(itemlist, struct itemlist_entry); + struct item_combo { struct script_code *script; unsigned short nameid[MAX_ITEMS_PER_COMBO];/* nameid array */ -- cgit v1.2.3-70-g09d2