From 221cc4ec5cb6301743e947eaabed3fecedba796f Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 16 Oct 2019 10:06:34 +0200 Subject: Refactored block-to-pickup conversion. (#4417) --- src/Item.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Item.h') diff --git a/src/Item.h b/src/Item.h index a94f35176..306e36b0a 100644 --- a/src/Item.h +++ b/src/Item.h @@ -20,6 +20,7 @@ // fwd: class cItemHandler; +class cItemGrid; class cColor; namespace Json @@ -234,6 +235,15 @@ class cItems // tolua_export : public std::vector { // tolua_export public: + + cItems(const cItems &) = default; + cItems(cItems &&) = default; + cItems & operator = (const cItems &) = default; + cItems & operator = (cItems &&) = default; + + /** Constructs a new instance containing the specified item. */ + cItems(cItem && a_InitialItem); + // tolua_begin /** Need a Lua-accessible constructor */ @@ -254,6 +264,9 @@ public: push_back(cItem(a_ItemType, a_ItemCount, a_ItemDamage)); } + /** Adds a copy of all items in a_ItemGrid. */ + void AddItemGrid(const cItemGrid & a_ItemGrid); + // tolua_end } ; // tolua_export -- cgit v1.2.3