- Recon Mission
This commit is contained in:
Frank
2021-08-06 23:16:48 +02:00
parent ed402e2f5f
commit 629c5e7739
5 changed files with 172 additions and 7 deletions

View File

@@ -260,6 +260,17 @@ function TARGET:AddObject(Object)
self:AddObject(object)
end
elseif Object:IsInstanceOf("SET_ZONE") then
local set=Object --Core.Set#SET_ZONE
set:SortByName()
for index,ZoneName in pairs(set.Index) do
local zone=set.Set[ZoneName] --Core.Zone#ZONE
self:_AddObject(zone)
end
else
---
@@ -971,6 +982,12 @@ function TARGET:GetTargetName(Target)
local coord=Target.Object --Core.Point#COORDINATE
return coord:ToStringMGRS()
elseif Target.Type==TARGET.ObjectType.ZONE then
local Zone=Target.Object --Core.Zone#ZONE
return Zone:GetName()
end