2,561
edits
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
Some interesting ideas for extending Nasal this way have been collected at [[Proposals:Nasal related]]. | Some interesting ideas for extending Nasal this way have been collected at [[Proposals:Nasal related]]. | ||
= Pre-Requisites = | |||
In order to work through this article, you will likely need to be interested in FlightGear core development, need to be somewhat familiar with C/C++, as well as with some basic Nasal (given that Nasal itself is implemented in ANSI C, basic C knowledge will mostly do for starters-C++ knowledge will only be required in order to understand the FlightGear side of things). | In order to work through this article, you will likely need to be interested in FlightGear core development, need to be somewhat familiar with C/C++, as well as with some basic Nasal (given that Nasal itself is implemented in ANSI C, basic C knowledge will mostly do for starters-C++ knowledge will only be required in order to understand the FlightGear side of things). | ||
Line 11: | Line 12: | ||
In addition, you may want to check out the [http://www.plausible.org/nasal/flightgear.html FlightGear Integration Docs]. | In addition, you may want to check out the [http://www.plausible.org/nasal/flightgear.html FlightGear Integration Docs]. | ||
= Nasal = | |||
Introductory information on the Nasal programming language itself can be found at [[Nasal scripting language]]. Information on writing simple Nasal scripts can be found at [[Howto: Write simple scripts in Nasal]]. Useful Nasal snippets can be found at [[Nasal Snippets]]. A Nasal Style Guide is available at [[Nasal Style Guide]] (Note that as of 05/2009, this is work in progress). | Introductory information on the Nasal programming language itself can be found at [[Nasal scripting language]]. Information on writing simple Nasal scripts can be found at [[Howto: Write simple scripts in Nasal]]. Useful Nasal snippets can be found at [[Nasal Snippets]]. A Nasal Style Guide is available at [[Nasal Style Guide]] (Note that as of 05/2009, this is work in progress). | ||
Line 152: | Line 154: | ||
const char* cool="cool"; | const char* cool="cool"; | ||
const char* uncool="uncool"; | const char* uncool="uncool"; | ||
const char* | const char* result; | ||
naRef retval; | naRef retval; | ||
if (!argc || !isNaNum(args[0])) | if (!argc || !isNaNum(args[0])) |
edits