Nasal library/io: Difference between revisions

Jump to navigation Jump to search
Add commit and version to read_airport_properties()
(Remove WIP notice)
(Add commit and version to read_airport_properties())
Line 190: Line 190:
{{Nasal doc
{{Nasal doc
|syntax = io.read_airport_properties(icao, fname[, target]);
|syntax = io.read_airport_properties(icao, fname[, target]);
|version = 2.4
|commit = {{fgdata commit|d4fb11|t=commit}}
|text = Loads an airport-related XML file. 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. Note that the file ''must'' be in the [[PropertyList XML files|PropertyList]] format, or else the function will fail.
|text = Loads an airport-related XML file. 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. Note that the file ''must'' be in the [[PropertyList XML files|PropertyList]] format, or else the function will fail.
|param1 = icao
|param1 = icao

Navigation menu