mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPS
**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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user