Display number of included/DB models in "1st model set wizard"

This commit is contained in:
Klaus Basan
2019-01-02 08:50:35 +01:00
committed by Mat Sutcliffe
parent 2de192600f
commit 7be54fde87
5 changed files with 37 additions and 3 deletions

View File

@@ -777,6 +777,16 @@ namespace BlackMisc
return count;
}
int CAircraftModelList::countByMode(CAircraftModel::ModelMode mode) const
{
int count = 0;
for (const CAircraftModel &model : (*this))
{
if (model.matchesMode(mode)) { count++; }
}
return count;
}
int CAircraftModelList::countMilitaryAircraft() const
{
int count = 0;