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

58 lines
1.1 KiB
YAML

name: ww2bunker2
generic: true
role: Building
tasks:
- StrikeTarget
- WW2Bunker
groups:
- name: ww2bunker2 0
statics:
- ww2bunker2 0-0
unit_count:
- 1
unit_types:
- Fire Control Bunker
- name: ww2bunker2 1
statics:
- ww2bunker2 1-0
- ww2bunker2 1-1
unit_count:
- 2
unit_types:
- Siegfried Line
- name: ww2bunker2 2
statics:
- ww2bunker2 2-0
- ww2bunker2 2-1
- ww2bunker2 2-2
- ww2bunker2 2-3
- ww2bunker2 2-4
- ww2bunker2 2-5
- ww2bunker2 2-6
- ww2bunker2 2-7
unit_count:
- 8
unit_types:
- Concertina wire
- name: ww2bunker2 3
statics:
- ww2bunker2 3-0
unit_count:
- 1
unit_types:
- Belgian gate
- name: ww2bunker2 4
statics:
- ww2bunker2 4-0
- ww2bunker2 4-1
- ww2bunker2 4-2
- ww2bunker2 4-3
- ww2bunker2 4-4
- ww2bunker2 4-5
- ww2bunker2 4-6
unit_count:
- 7
unit_types:
- Czech hedgehogs 1
layout_file: resources/layouts/buildings/buildings.miz