User Tools

Site Tools


usage:atlatc:api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
usage:atlatc:api [2020-01-24 10:25]
orwell
usage:atlatc:api [2020-01-24 10:31]
orwell
Line 8: Line 8:
   * ''math''   * ''math''
   * ''table''   * ''table''
-  * ''os''+  * from ''os''
 +    * ''os.clock()'' 
 +    * ''os.difftime()'' 
 +    * ''os.time()'' 
 +    * ''os.date()'' ((note that ''os.date()'' without parameters returns in table form ''("*t")''))
  
 The standard Lua functions are available in the LuaATC environment: The standard Lua functions are available in the LuaATC environment:
Line 170: Line 174:
  
 To control a train, this train must be positioned on the ATC rail. It does not matter which portion of the train is on the ATC rail, and whether the train is moving or not. ((An exception applies to events of type ''approach'', where the approaching train can be controlled. The train is no longer available on subsequent ''int'' or ''schedule'' events.)) To control a train, this train must be positioned on the ATC rail. It does not matter which portion of the train is on the ATC rail, and whether the train is moving or not. ((An exception applies to events of type ''approach'', where the approaching train can be controlled. The train is no longer available on subsequent ''int'' or ''schedule'' events.))
 +
 +=== Functions ===
  
 == atc_send(cmd) == == atc_send(cmd) ==
usage/atlatc/api.txt · Last modified: 2023-07-05 17:48 by maverick2797