16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 22:09:19 +02:00

toggleable lua support during build

This commit is contained in:
milek7
2021-03-06 03:49:24 +01:00
parent 16f856c833
commit 994b1446c1
6 changed files with 34 additions and 8 deletions

View File

@@ -14,10 +14,13 @@ http://mozilla.org/MPL/2.0/.
#include "Names.h"
#include "EvLaunch.h"
#include "Logs.h"
#include "lua.h"
#include "command.h"
#include "comparison.h"
#ifdef WITH_LUA
#include "lua.h"
#endif
// common event interface
class basic_event {
@@ -585,6 +588,7 @@ private:
float m_friction{ -1.f };
};
#ifdef WITH_LUA
class lua_event : public basic_event {
public:
lua_event(lua::eventhandler_t func);
@@ -599,6 +603,7 @@ private:
lua::eventhandler_t lua_func = nullptr;
};
#endif
class message_event : public basic_event {