20,741
edits
Line 89: | Line 89: | ||
But this is exactly where it pays off to simply encapsulate implementation specific details into a hash with callbacks that can be easily switched. | But this is exactly where it pays off to simply encapsulate implementation specific details into a hash with callbacks that can be easily switched. | ||
== Use Cases == | |||
This kind of functionality could be used to support custom styling/theming for avionics that have otherwise overlapping/identical features, but mainly differ in terms of appearance/looks. | |||
== Example == | == Example == | ||
Let's imagine, we have a piece of Nasal code that needs to work with different FDMs (or autopilot/route manager configurations). | Let's imagine, we have a piece of Nasal code that needs to work with different FDMs (or autopilot/route manager configurations). |