Melchior FRANZ wrote:
> Sure. AFAIK, every nasal context can write into any nasal namespace.
> This does include to overwrite an existing function there. I for one
> am overwriting view.stepView() from my personal
> $FG_ROOT/Nasal/local.nas.  I've redefined controls.throttleAxis() to
> grab the joystick throttle lever position on occasions.

Indeed.  Note that more conventional approaches are also possible,
like providing a registerElectricalHandler() function, or defining a
"ElectricalSystem" interface class with a default implementation that
the user can replace with something like "setElectricalSystem()",
etc...

Andy

_______________________________________________
Flightgear-devel mailing list
[email protected]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to