diff options
author | Mattes D <github@xoft.cz> | 2014-03-29 22:32:50 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-03-29 22:32:50 +0100 |
commit | 37812813d3bf8011089bc6e117b226a14a844540 (patch) | |
tree | af60ec69801c9bd9a80d7b5328814c490cb6fc47 /src/Bindings/LuaState.cpp | |
parent | Renamed lua dll for tolua++.exe. (diff) | |
parent | Fixed the OnProjectileHitBlock hook not stopping projectiles. (diff) | |
download | cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.gz cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.bz2 cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.lz cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.xz cuberite-37812813d3bf8011089bc6e117b226a14a844540.tar.zst cuberite-37812813d3bf8011089bc6e117b226a14a844540.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 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()); |