summaryrefslogtreecommitdiff
path: root/scripts/enter_exit_session.lua
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/enter_exit_session.lua')
-rw-r--r--scripts/enter_exit_session.lua74
1 files changed, 37 insertions, 37 deletions
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