From 9d1de325216b89a6682a639fe235d781b6963d69 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 15 Nov 2013 12:24:10 +0100 Subject: CLEANUP. --- scripts/enter_exit_session.lua | 74 +++++++++++++++++++++--------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'scripts/enter_exit_session.lua') diff --git a/scripts/enter_exit_session.lua b/scripts/enter_exit_session.lua index 6d42ff2..2a246b5 100644 --- a/scripts/enter_exit_session.lua +++ b/scripts/enter_exit_session.lua @@ -1,37 +1,37 @@ --- SLIMax Mgr Lua Script v3.1 --- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved. --- Event received when the car enter and exit the session. - --- param = device type (integer - see GetDeviceType() ) --- enter session -function enterSessionEvent(deviceType) - -- call custom script - local result = custom_enterSessionEvent(deviceType) - if result <= 1 then return result end - -- if result >= 2 continue - - -- call global custom script - result = global_custom_enterSessionEvent(deviceType) - if result <= 1 then return result end - -- if result >= 2 continue - - -- do nothing - return 1 -end - --- param = device type (integer - see GetDeviceType() ) --- exit session -function exitSessionEvent(deviceType) - -- call custom script - local result = custom_exitSessionEvent(deviceType) - if result <= 1 then return result end - -- if result >= 2 continue - - -- call global custom script - result = global_custom_exitSessionEvent(deviceType) - if result <= 1 then return result end - -- if result >= 2 continue - - -- do nothing - return 1 -end +-- SLIMax Mgr Lua Script v3.1 +-- Copyright (c)2012-2013 by Zappadoc - All Rights Reserved. +-- Event received when the car enter and exit the session. + +-- param = device type (integer - see GetDeviceType() ) +-- enter session +function enterSessionEvent(deviceType) + -- call custom script + local result = custom_enterSessionEvent(deviceType) + if result <= 1 then return result end + -- if result >= 2 continue + + -- call global custom script + result = global_custom_enterSessionEvent(deviceType) + if result <= 1 then return result end + -- if result >= 2 continue + + -- do nothing + return 1 +end + +-- param = device type (integer - see GetDeviceType() ) +-- exit session +function exitSessionEvent(deviceType) + -- call custom script + local result = custom_exitSessionEvent(deviceType) + if result <= 1 then return result end + -- if result >= 2 continue + + -- call global custom script + result = global_custom_exitSessionEvent(deviceType) + if result <= 1 then return result end + -- if result >= 2 continue + + -- do nothing + return 1 +end -- cgit v1.2.3