Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
Line 367: Line 367:
</syntaxhighlight>
</syntaxhighlight>


This would only require adding a new "[b]naGhostType[/b]" member to the FGPositioned class (and automatically to FGAirport, FGNavRecord, FGRunway because they are derived from FGPositioned).
This would only require adding a new '''naGhostType''' member to the FGPositioned class (and automatically to FGAirport, FGNavRecord, FGRunway because they are derived from FGPositioned).


So it would make sense to simply use a new "FGNasalWrapper" class, add it to the top of NasalSys.hxx, i.e. for C++ classes that are intended to be exposed to Nasal ?
So it would make sense to simply use a new "FGNasalWrapper" class, add it to the top of NasalSys.hxx, i.e. for C++ classes that are intended to be exposed to Nasal ?

Navigation menu