summaryrefslogtreecommitdiffstats
path: root/source/LuaState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/LuaState.cpp')
-rw-r--r--source/LuaState.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/LuaState.cpp b/source/LuaState.cpp
index 664ba8147..d4beb249b 100644
--- a/source/LuaState.cpp
+++ b/source/LuaState.cpp
@@ -396,6 +396,19 @@ void cLuaState::PushObject(cEntity * a_Entity)
+void cLuaState::PushObject(cMonster * a_Monster)
+{
+ ASSERT(IsValid());
+ ASSERT(m_NumCurrentFunctionArgs >= 0); // A function must be pushed to stack first
+
+ tolua_pushusertype(m_LuaState, a_Monster, "cMonster");
+ m_NumCurrentFunctionArgs += 1;
+}
+
+
+
+
+
void cLuaState::PushObject(cItem * a_Item)
{
ASSERT(IsValid());