From 4e44c4b33a35fcaa22d26ef1b5fc82275ef6216d Mon Sep 17 00:00:00 2001 From: "nielsbreu@gmail.com" Date: Thu, 9 May 2013 14:32:27 +0000 Subject: function SpawnItemPickups is now exported to Lua. Lua is able to create a Items object. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1463 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Item.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/Item.h') diff --git a/source/Item.h b/source/Item.h index fb3999f9e..b80eb132b 100644 --- a/source/Item.h +++ b/source/Item.h @@ -99,6 +99,8 @@ class cItems // tolua_export { // tolua_export public: // tolua_begin + /// Need a Lua-accessible constructor + cItems(void) {} cItem & Get (int a_Idx) {return at(a_Idx); } void Set (int a_Idx, const cItem & a_Item) {at(a_Idx) = a_Item; } void Add (const cItem & a_Item) {push_back(a_Item); } -- cgit v1.2.3