Ref T335, misc. improvements of value classes/list

- verifyModelData
- setModelType
- getCallsignsAsString
This commit is contained in:
Klaus Basan
2018-09-12 16:18:56 +02:00
parent 7d715a909e
commit c675ef5c32
8 changed files with 61 additions and 4 deletions

View File

@@ -474,6 +474,18 @@ namespace BlackMisc
return c;
}
int CAircraftModelList::setModelType(CAircraftModel::ModelType type)
{
int c = 0;
for (CAircraftModel &model : (*this))
{
if (model.getModelType() == type) { continue; }
model.setModelType(type);
c++;
}
return c;
}
int CAircraftModelList::setCG(const CLength &cg)
{
int c = 0;