RndName 4ace13c857 Improve the optional unit handling in layouts
added the fill property to the layout groups which allows to specify if a optional layout group should be filled with a faction accessible unit if it was not defined by the preset groups. This is usefull to allow more generalized templates which for example may or may not have a Search Radar without adding one to all layouts (example: Rapier and Roland Sites which use the generic SHORAD layout)

this fixes an issue which prevented optional units like logistics to be added to the forcegroup if they were not defined in the preset group yaml
2022-03-23 17:26:47 +01:00

36 lines
765 B
YAML

name: Short Range Anti Air Group
tasks:
- SHORAD
groups:
- SHORAD:
- name: SHORAD STR
optional: true
fill: false # Do not fill with faction possible units
unit_count:
- 1
unit_classes:
- SearchRadar
- SearchTrackRadar
- TrackRadar
- name: SHORAD OTR
optional: true
fill: false # Do not fill with faction possible units
unit_count:
- 1
unit_classes:
- OpticalTracker
- name: SHORAD LN
unit_count:
- 2
unit_classes:
- SHORAD
- Launcher
- name: SHORAD Logistics
optional: true
unit_count:
- 1
- 2
unit_classes:
- Logistics
layout_file: resources/layouts/anti_air/SHORAD.miz