Howto:Coding a simple Nasal Framework: Difference between revisions

m
→‎Objective: http://forum.flightgear.org/viewtopic.php?f=71&t=23650&p=215310#p215310
m (→‎Objective: http://forum.flightgear.org/viewtopic.php?f=71&t=23650&p=215310#p215310)
Line 5: Line 5:
* support multiple independent instances (e.g. PFDs or NDs)  
* support multiple independent instances (e.g. PFDs or NDs)  
* be aircraft/use-case agnostic (e.g. work without hard-coded properties)
* be aircraft/use-case agnostic (e.g. work without hard-coded properties)
* make aircraft-specific settings configurable, e.g. number of engines, by [[Howto:Start using vectors and hashes in Nasal|using vectors and hashes]]
* configurable without touching back-end code (e.g. via configuration hashes)
* configurable without touching back-end code (e.g. via configuration hashes)
* modular (use separate files for splitting things up)
* modular (use separate files for splitting things up)


We'll be using the PFD/ND code as an example here, and won't be using any complicated techniques.
We'll be using the PFD/ND code as an example here, and won't be using any complicated techniques.


== Classes as Containers for your Variables ==
== Classes as Containers for your Variables ==