This commit is contained in:
Frank
2020-04-19 23:49:08 +02:00
parent 54e799d3f6
commit 31697030ed
5 changed files with 280 additions and 47 deletions
+18
View File
@@ -614,6 +614,24 @@ function SQUADRON:CanMission(Mission)
return true
end
--- Get assets for a mission.
-- @param #SQUADRON self
-- @return #number Assets not spawned.
function SQUADRON:CountAssetsInStock()
local N=0
for _,_asset in pairs(self.assets) do
local asset=_asset --Ops.AirWing#AIRWING.SquadronAsset
if asset.spawned then
else
N=N+1
end
end
return N
end
--- Get assets for a mission.
-- @param #SQUADRON self
-- @param Ops.Auftrag#AUFTRAG Mission The mission.