580
edits
No edit summary |
No edit summary |
||
Line 153: | Line 153: | ||
</maintainers > | </maintainers > | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Variants ==== | |||
When you have multiple -set.xml files in an aircraft directory, one of them should be indicated as the default or primary, and other -set.xmls should be marked as variants of this. This is important so the packaging system knows which -set.xml best describs the whole directory. It's normally quite clear what the main or principle -set.xml should be. | |||
In the main -set.xml, add the following: | |||
<syntaxhighlight lang="xml"> | |||
<primary-set type="bool">true</primary-set> | |||
</syntaxhighlight> | |||
In each variant -set.xml, add the following: | |||
<syntaxhighlight lang="xml"> | |||
<variant-of>''mainAircraftName''</variant-of> | |||
</syntaxhighlight> | |||
For example if the main aircraft -set.xml is 'dc3-set.xml', and the variants are 'c47-set.xml' and 'dst-set.xml', you would add: | |||
<syntaxhighlight lang="xml"> | |||
<variant-of>dc3</variant-of> | |||
</syntaxhighlight> | |||
in both c47-set.xml and dst-set.xml. This ensures the information from dc3-set.xml will be used when describing the entire package. | |||
==== Tags ==== | ==== Tags ==== |
edits