16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 09:59:18 +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

@@ -2075,6 +2075,7 @@ friction_event::export_as_text_( std::ostream &Output ) const {
Output << m_friction << ' ';
}
#ifdef WITH_LUA
lua_event::lua_event(lua::eventhandler_t func) {
lua_func = func;
}
@@ -2118,6 +2119,7 @@ lua_event::export_as_text_( std::ostream &Output ) const {
bool lua_event::is_instant() const {
return m_delay == 0.0 && m_delayrandom == 0.0;
}
#endif
// prepares event for use
void