Date: Fri, 29 Mar 2024 04:48:36 +0000 (UTC) Message-ID: <1825009316.6473.1711687716040@2f9704fbf185> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6472_1297978702.1711687716040" ------=_Part_6472_1297978702.1711687716040 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
C functions available in sccharts by including readparams.h:
Reads debug level from a JSON settings file called settings.json in $XDG= _CONFIG_HOME/railway if XDG_CONFIG_HOME is set or from $HOME/.config/railwa= y if it isn't.
Read initial train positions from a JSON file and inserts it in the int = array aiTrainPositions. The JSON file is called config.json and is found in= $XDG_CONFIG_HOME/railway if XDG_CONFIG_HOME is set or from $HOME/.config/r= ailway if it isn't. debug_level should be obtained through debugLevel().
Read a new action's data from a JSON file and inserts it into the int ar= ray aiAction. aiAction will then contain {id, start, destination, reverse f= lag}. If one or more fields are set to -1 the action is to be considered in= valid and ignored. The JSON file is called input.json and is found in $XDG_= CONFIG_HOME/railway if XDG_CONFIG_HOME is set or from $HOME/.config/railway= if it isn't. debug_level should be obtained through debugLevel().