summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:32:08 +0100
committerTycho Bickerstaff <work.tycho@gmail.com>2013-12-31 17:32:08 +0100
commit7694a0788c796cb08539dcdc3ed4bf9eee3babbf (patch)
tree78873e56309a8eb45b47de6a2d775763568a5a4e /src/Bindings/LuaState.cpp
parentfogot to add promise classes (diff)
parentMerge pull request #484 from worktycho/cmake-fixes (diff)
downloadcuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.gz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.bz2
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.lz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.xz
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.tar.zst
cuberite-7694a0788c796cb08539dcdc3ed4bf9eee3babbf.zip
Diffstat (limited to 'src/Bindings/LuaState.cpp')
-rw-r--r--src/Bindings/LuaState.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Bindings/LuaState.cpp b/src/Bindings/LuaState.cpp
index 64a818a60..a684620f3 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -468,6 +468,18 @@ void cLuaState::Push(cItems * a_Items)
+void cLuaState::Push(const cItems & a_Items)
+{
+ ASSERT(IsValid());
+
+ tolua_pushusertype(m_LuaState, (void *)&a_Items, "cItems");
+ m_NumCurrentFunctionArgs += 1;
+}
+
+
+
+
+
void cLuaState::Push(cClientHandle * a_Client)
{
ASSERT(IsValid());