RndName 2c17a9a52e Refactor Templates to Layouts, Review and Cleanup
- Fix tgogenerator
- Fix UI for ForceGroup and Layouts
- Fix ammo depot handling
- Split bigger files in smaller meaningful files (TGO, layouts, forces)
- Renamed Template to Layout
- Renamed GroundGroup to TheaterGroup and GroundUnit to TheaterUnit
- Reorganize Layouts and UnitGroups to a ArmedForces class and ForceGroup similar to the AirWing and Squadron
- Reworded the UnitClass, GroupRole, GroupTask (adopted to PEP8) and reworked the connection from Role and Task
- added comments
- added missing unit classes
- added temp workaround for missing classes
- add repariable property to TheaterUnit
- Review and Cleanup

Added serialization for loaded templates

Loading the templates from the .miz files takes a lot of computation time and in the future there will be more templates added to the system. Therefore a local pickle serialization for the loaded templates was re-added:
- The pickle will be created the first time the TemplateLoader will be accessed
- Pickle is stored in Liberation SaveDir
- Added UI option to (re-)import templates
2022-02-21 20:45:41 +01:00

52 lines
869 B
YAML

name: Flak Site
role: AntiAir
tasks:
- AAA
groups:
- name: Flak Site 0
unit_count:
- 4
unit_types:
- flak38
- flak18
- flak36
- flak37
- flak41
- flak30
- name: Flak Site 1
unit_count:
- 1
unit_types:
- flak38
- name: Flak Site 2
unit_count:
- 1
unit_types:
- flak36
- name: Flak Site 3
unit_count:
- 2
unit_types:
- Flakscheinwerfer_37
- name: Flak Site 4
unit_count:
- 1
unit_types:
- Maschinensatz_33
- name: Flak Site 5
unit_count:
- 1
unit_types:
- KDO_Mod40
- name: Flak Site 6
unit_count:
- 1
unit_types:
- Kubelwagen_82
- name: Flak Site 7
unit_count:
- 4
unit_types:
- Blitz_36-6700A
layout_file: resources/layouts/anti_air/legacy_ground_templates.miz