summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-01-01 15:31:57 +0100
committermadmaxoft <github@xoft.cz>2014-01-01 15:31:57 +0100
commitd4e29a0d183151ecdb5b9c8e710c810802c9f35b (patch)
tree75b116fe37cdb6c389339d5eccc4a4939e28df2d /src/Bindings/LuaState.cpp
parentMerge pull request #497 from xdot/master (diff)
parentLittle more documentation for OnPlayerFishing. (diff)
downloadcuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar.gz
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar.bz2
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar.lz
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar.xz
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.tar.zst
cuberite-d4e29a0d183151ecdb5b9c8e710c810802c9f35b.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());