diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 17:32:08 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-31 17:32:08 +0100 |
commit | 7694a0788c796cb08539dcdc3ed4bf9eee3babbf (patch) | |
tree | 78873e56309a8eb45b47de6a2d775763568a5a4e /src/Bindings/LuaState.cpp | |
parent | fogot to add promise classes (diff) | |
parent | Merge pull request #484 from worktycho/cmake-fixes (diff) | |
download | cuberite-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.cpp | 12 |
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()); |