2,732
edits
Red Leader (talk | contribs) (→Functions: Doc read()) |
Red Leader (talk | contribs) (→Functions: Start read_airport_properties()) |
||
Line 189: | Line 189: | ||
=== read_airport_properties() === | === read_airport_properties() === | ||
{{Nasal doc | |||
|syntax = io.read_airport_properties(icao, fname[, target]); | |||
|text = Loads an airport-related XML file in FlightGear's [[PropertyList]] format. Paths will be concatenated in the following form: <tt>''[[$FG_SCENERY]]/Airports/'''''i'''''/'''''c'''''/'''''a'''''/'''''icao'''''.'''''fname'''''.xml''</tt>. Returns the data as a <code>props.Node</code> object or <code>'''nil'''</code> on error. | |||
|param1 = icao | |||
|param1text = ICAO code of the airport. | |||
|param2 = fname | |||
Returns the data as a props.Node | |param2text = Filename of the airport data file, e.g., "groundnet"see above for its use in the concatenation of the path. | ||
|param3 = target | |||
|param3text = | |||
|example1 = var data = io.read_airport_properties("KSFO", "rwyuse"); | |||
}} | |||
var data = io.read_airport_properties("KSFO", "rwyuse"); | |||
=== read_properties() === | === read_properties() === |