0dbb0dff9e
Waypoint objects used in Nasal code can now return their airport, runway or navaid object (Nasal ghost). More precisely: - if waypoint 'wpt' was made from an airport object[1], then 'wpt.airport' is this airport object; - if waypoint 'wpt' was made from a runway object[2], then 'wpt.runway' is this runway object, and 'wpt.airport' is the airport containing that runway; - if waypoint 'wpt' was made from a navaid object[3], then 'wpt.navaid' is this navaid object. When one of the three properties 'airport', 'runway', and 'navaid' is not applicable to a given waypoint due to the type of the underlying FGPositioned, its value is nil. The code for these properties was already mostly there, but unreachable from Nasal. [1] For instance, with createWPFrom(airportinfo("LOWI")) [2] For instance, with createWPFrom(airportinfo("LOWI").runway("26")) [3] For instance, with: var apt = airportinfo("LOWI"); var navaid = findNavaidByFrequencyMHz(apt, 109.7); var navaidWpt = createWPFrom(navaid); |
||
---|---|---|
.. | ||
ClipboardCocoa.mm | ||
ClipboardFallback.cxx | ||
ClipboardWindows.cxx | ||
ClipboardX11.cxx | ||
CMakeLists.txt | ||
nasal-props.cxx | ||
NasalAircraft.cxx | ||
NasalAircraft.hxx | ||
NasalCanvas.cxx | ||
NasalCanvas.hxx | ||
NasalClipboard.cxx | ||
NasalClipboard.hxx | ||
NasalCondition.cxx | ||
NasalCondition.hxx | ||
NasalHTTP.cxx | ||
NasalHTTP.hxx | ||
NasalModelData.cxx | ||
NasalModelData.hxx | ||
NasalPositioned.cxx | ||
NasalPositioned.hxx | ||
NasalPositioned_cppbind.cxx | ||
NasalSGPath.cxx | ||
NasalSGPath.hxx | ||
NasalString.cxx | ||
NasalString.hxx | ||
NasalSys.cxx | ||
NasalSys.hxx | ||
NasalSys_private.hxx |