mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Move transport categories/etc to SetRequiredCarriers, to allow for specifying them without always needing to specify zones
This commit is contained in:
@@ -3068,12 +3068,9 @@ function AUFTRAG:SetRequiredTransport(DeployZone, NcarriersMin, NcarriersMax, Di
|
|||||||
-- OPS transport from pickup to deploy zone.
|
-- OPS transport from pickup to deploy zone.
|
||||||
self.transportDeployZone=DeployZone
|
self.transportDeployZone=DeployZone
|
||||||
self.transportDisembarkZone=DisembarkZone
|
self.transportDisembarkZone=DisembarkZone
|
||||||
self.transportCategories = UTILS.EnsureTable(Categories, true)
|
|
||||||
self.transportAttributes = UTILS.EnsureTable(Attributes, true)
|
|
||||||
self.transportProperties = UTILS.EnsureTable(Properties, true)
|
|
||||||
|
|
||||||
-- Set required carriers.
|
-- Set required carriers.
|
||||||
self:SetRequiredCarriers(NcarriersMin, NcarriersMax)
|
self:SetRequiredCarriers(NcarriersMin, NcarriersMax, Categories, Attributes, Properties)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
@@ -3124,8 +3121,11 @@ end
|
|||||||
-- @param #AUFTRAG self
|
-- @param #AUFTRAG self
|
||||||
-- @param #number NcarriersMin Number of carriers *at least* required. Default 1.
|
-- @param #number NcarriersMin Number of carriers *at least* required. Default 1.
|
||||||
-- @param #number NcarriersMax Number of carriers *at most* used for transportation. Default is same as `NcarriersMin`.
|
-- @param #number NcarriersMax Number of carriers *at most* used for transportation. Default is same as `NcarriersMin`.
|
||||||
|
-- @param #table Categories Group categories.
|
||||||
|
-- @param #table Attributes Generalizes group attributes.
|
||||||
|
-- @param #table Properties DCS attributes.
|
||||||
-- @return #AUFTRAG self
|
-- @return #AUFTRAG self
|
||||||
function AUFTRAG:SetRequiredCarriers(NcarriersMin, NcarriersMax)
|
function AUFTRAG:SetRequiredCarriers(NcarriersMin, NcarriersMax, Categories, Attributes, Properties)
|
||||||
|
|
||||||
self.NcarriersMin=NcarriersMin or 1
|
self.NcarriersMin=NcarriersMin or 1
|
||||||
|
|
||||||
@@ -3136,6 +3136,10 @@ function AUFTRAG:SetRequiredCarriers(NcarriersMin, NcarriersMax)
|
|||||||
self.NcarriersMax=self.NcarriersMin
|
self.NcarriersMax=self.NcarriersMin
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.transportCategories = UTILS.EnsureTable(Categories, true)
|
||||||
|
self.transportAttributes = UTILS.EnsureTable(Attributes, true)
|
||||||
|
self.transportProperties = UTILS.EnsureTable(Properties, true)
|
||||||
|
|
||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user