summaryrefslogtreecommitdiffstats
path: root/src/Bindings/LuaState.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-03-29 23:05:17 +0100
committermadmaxoft <github@xoft.cz>2014-03-29 23:05:17 +0100
commit47a427d3dc1aafa1de5d55faa60e666e64ba7bd3 (patch)
tree3d9e203397178a6874b0430773731693cbd03ab6 /src/Bindings/LuaState.cpp
parentNetherFortGen: Added several more prefabs. (diff)
parentcPrefab now uses a struct for block type definition in CharMap. (diff)
downloadcuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar.gz
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar.bz2
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar.lz
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar.xz
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.tar.zst
cuberite-47a427d3dc1aafa1de5d55faa60e666e64ba7bd3.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());