mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Ref T335, misc. improvements of value classes/list
- verifyModelData - setModelType - getCallsignsAsString
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user