From bd8ddf1a526c57648028bbee192d92e1289219ac Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 4 Jan 2014 19:07:30 -0500 Subject: Add InvRef::get/set_lists() --- src/script/lua_api/l_inventory.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/script/lua_api/l_inventory.h') diff --git a/src/script/lua_api/l_inventory.h b/src/script/lua_api/l_inventory.h index ed3249e5f..03b241034 100644 --- a/src/script/lua_api/l_inventory.h +++ b/src/script/lua_api/l_inventory.h @@ -79,6 +79,12 @@ private: // set_list(self, listname, list) static int l_set_list(lua_State *L); + // get_lists(self) -> list of InventoryLists + static int l_get_lists(lua_State *L); + + // set_lists(self, lists) + static int l_set_lists(lua_State *L); + // add_item(self, listname, itemstack or itemstring or table or nil) -> itemstack // Returns the leftover stack static int l_add_item(lua_State *L); -- cgit v1.2.3