5.6. MDS_Scouts sectionΒΆ
Note
MDSScoutsSectionParser
is
responsible for parsing sections which starts with MDS_Scouts_
prefix.
Those sections define lists of aircrafts which can be used as scouts.
There are two known sections:
MDS_Scouts_Red
MDS_Scouts_Blue
Each line of those sections contains a code name of an aircraft.
Section example:
[MDS_Scouts_Red]
B-25H-1NA
B-25J-1NA
BeaufighterMk21
Output example:
{
'scouts_red': {
'belligerent': Belligerents.red,
'aircrafts': [
"B-25H-1NA",
"B-25J-1NA",
"BeaufighterMk21",
],
}
}
Output contains a dictionary with a single value. It can be accessed by
scouts_{suffix}
key, where suffix
is original suffix, converted to
lower case. So, possible keys are:
scouts_red
scouts_blue
The value itself is also a dictionary, which contains a list of aircraft code names and a belligerent constant.