diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-31 14:53:10 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-31 14:53:10 +0100 |
commit | 020a8b457d67a70f407482322188823af9ac7f72 (patch) | |
tree | 0a285b6897b4f403696d19b23579d96da5458a6b /src/Bindings/LuaState.cpp | |
parent | Documented OnPlayerFished and OnPlayerFishing. (diff) | |
download | cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.gz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.bz2 cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.lz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.xz cuberite-020a8b457d67a70f407482322188823af9ac7f72.tar.zst cuberite-020a8b457d67a70f407482322188823af9ac7f72.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()); |