Howto:Extend Nasal: Difference between revisions

Jump to navigation Jump to search
(Minor edits)
Line 343: Line 343:
This needs to be specifically implemented for each new "ghost" type.
This needs to be specifically implemented for each new "ghost" type.


For an example of how something like this is done in the FlightGear context, you may want to check out $FG_SRC/Scripting/nasal-props.cxx, which wraps the SGPropertyNode class ([[SimGear]]) inside a nasal ghost, so that the C++ class is exposed to Nasal scripts.
For an example of how something like this is done in the FlightGear context, you may want to check out {{fg src file|path=src/Scripting/nasal-props.cxx}}, which wraps the SGPropertyNode class ([[SimGear]]) inside a nasal ghost, so that the C++ class is exposed to Nasal scripts.


== Locking a Nasal context (threading) ==
== Locking a Nasal context (threading) ==

Navigation menu