6,566
edits
Red Leader (talk | contribs) (Minor edits) |
(→Passing pointers to Nasal scripts: Switch to the {{fg src file}} template.) |
||
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 | 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) == |