OPS Cleanup

This commit is contained in:
Frank
2021-08-12 11:07:28 +02:00
parent 93f4b345c5
commit b21c3ed4e9
6 changed files with 92 additions and 88 deletions

View File

@@ -142,9 +142,7 @@ end
-- @param #string PlatoonName Name of the platoon.
-- @return Ops.Platoon#PLATOON The Platoon object.
function BRIGADE:GetPlatoon(PlatoonName)
local platoon=self:_GetCohort(PlatoonName)
return platoon
end
@@ -152,7 +150,7 @@ end
-- @param #BRIGADE self
-- @param Ops.Warehouse#WAREHOUSE.Assetitem Asset The platoon asset.
-- @return Ops.Platoon#PLATOON The platoon object.
function BRIGADE:GetSquadronOfAsset(Asset)
function BRIGADE:GetPlatoonOfAsset(Asset)
local platoon=self:GetPlatoon(Asset.squadname)
return platoon
end
@@ -160,8 +158,8 @@ end
--- Remove asset from squadron.
-- @param #BRIGADE self
-- @param #BRIGADE.SquadronAsset Asset The squad asset.
function BRIGADE:RemoveAssetFromSquadron(Asset)
local squad=self:GetSquadronOfAsset(Asset)
function BRIGADE:RemoveAssetFromPlatoon(Asset)
local squad=self:GetPlatoonOfAsset(Asset)
if squad then
squad:DelAsset(Asset)
end