From b98dbac4ed2f755ce71bd9be17f26a3f86c1e3cc Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Tue, 4 Jul 2017 15:15:48 -0400 Subject: Lots of changes * client no longer crashes when closed * started work on adding physics types * some bugfixes to core lua api --- src/client/lua_api/gameparts.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/client/lua_api/gameparts.hpp') diff --git a/src/client/lua_api/gameparts.hpp b/src/client/lua_api/gameparts.hpp index 2938ee2..2a14f4a 100644 --- a/src/client/lua_api/gameparts.hpp +++ b/src/client/lua_api/gameparts.hpp @@ -1,4 +1,5 @@ #include "../util/hashmap.h" +#include extern "C" { #include #include @@ -9,7 +10,14 @@ typedef struct LISceneNode { irr::scene::ISceneNode* n; map_t funcmap; const char* type; -} LIGUIElement; +} LISceneNode; + +typedef struct LBPhysNode { + irr::scene::ISceneNode* n; + btRigidBody* r; + map_t funcmap; + const char* type; +} LIPhysNode; extern lua_State* tL; extern irr::IrrlichtDevice* gamedevice; -- cgit v1.2.3-70-g09d2