summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2014-03-29 15:43:03 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2014-03-29 15:43:03 +0100
commita6ef40cb6efa1b8da549c81c7e1137d523240c17 (patch)
tree2a29b23646e572fbb3a60528374b00871f05cbf4 /src/Bindings/LuaState.cpp
parentAdded HOOK_PROJECTILE_HIT_ENTITY (diff)
downloadcuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar.gz
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar.bz2
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar.lz
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar.xz
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.tar.zst
cuberite-a6ef40cb6efa1b8da549c81c7e1137d523240c17.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 47380b8a7..13eb17f7d 100644
--- a/src/Bindings/LuaState.cpp
+++ b/src/Bindings/LuaState.cpp
@@ -479,6 +479,18 @@ void cLuaState::Push(cEntity * a_Entity)
+void cLuaState::Push(cProjectileEntity * a_ProjectileEntity)
+{
+ ASSERT(IsValid());
+
+ tolua_pushusertype(m_LuaState, a_ProjectileEntity, "cProjectileEntity");
+ m_NumCurrentFunctionArgs += 1;
+}
+
+
+
+
+
void cLuaState::Push(cMonster * a_Monster)
{
ASSERT(IsValid());