**FLEET v0.0.1**
- New class for naval units corresponding to AIRWING and BRIGADE

**FLOTILLA v0.0.1**
- New class for naval units corresponding to SQUADRON and PLATOON
This commit is contained in:
Frank
2022-04-08 22:18:35 +02:00
parent c2b1c2b1d8
commit 4ba0a2dafb
8 changed files with 676 additions and 5 deletions

View File

@@ -540,6 +540,13 @@ function LEGION:IsAirwing()
return is
end
--- Check if the FLEET class is calling.
-- @param #LEGION self
-- @return #boolean If true, this is a FLEET.
function LEGION:IsFleet()
local is=self.ClassName==FLEET.ClassName
return is
end
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Start & Status
@@ -1568,6 +1575,14 @@ function LEGION:_CreateFlightGroup(asset)
opsgroup=ARMYGROUP:New(asset.spawngroupname)
elseif self:IsFleet() then
---
-- NAVYGROUP
---
opsgroup=NAVYGROUP:New(asset.spawngroupname)
else
self:E(self.lid.."ERROR: not airwing or brigade!")
end