Nasal library: Difference between revisions

Jump to navigation Jump to search
→‎rand(): Basic doc for registerFlightPlanDelegate(). More doc will be added to Nasal Flightplan in future
(→‎rand(): Finish docing)
(→‎rand(): Basic doc for registerFlightPlanDelegate(). More doc will be added to Nasal Flightplan in future)
Line 1,946: Line 1,946:
|text = Returns a random floating point number between 0 and 1. It takes no arguments.
|text = Returns a random floating point number between 0 and 1. It takes no arguments.
|example1 = print(rand()); # prints random number
|example1 = print(rand()); # prints random number
}}
=== registerFlightPlanDelegate() ===
{{Nasal doc
|syntax = registerFlightPlanDelegate(init_func);
|source = {{flightgear file|src/Scripting/NasalPositioned.cxx|l=1879|t=Source}}
|text = Registers a flight plan delegate. See <tt>''{{fgdata file|Nasal/route_manager.nas|t=$FG_ROOT/Nasal/route_manager.nas}}''</tt> for examples.
|param1 = init_func
|param1text = Initialization function which will be called during FlightGear's startup.
}}
}}


Navigation menu