mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Ref T259, Ref T243 utility functions for timestamp based classes and parts plus renamings
This commit is contained in:
@@ -25,5 +25,17 @@ namespace BlackMisc
|
||||
CAircraftPartsList::CAircraftPartsList(std::initializer_list<CAircraftParts> il) :
|
||||
CSequence<CAircraftParts>(il)
|
||||
{ }
|
||||
|
||||
int CAircraftPartsList::setOnGround(bool onGround)
|
||||
{
|
||||
int c = 0;
|
||||
for (CAircraftParts &p : *this)
|
||||
{
|
||||
if (p.isOnGround() == onGround) { continue; }
|
||||
p.setOnGround(onGround);
|
||||
c++;
|
||||
}
|
||||
return c;
|
||||
}
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user