Merge branch 'FF/Ops' into FF/OpsDev

This commit is contained in:
Frank
2021-11-07 18:24:48 +01:00
25 changed files with 191446 additions and 892 deletions

View File

@@ -336,17 +336,14 @@ do -- SET_BASE
-- @return Core.Set#SET_BASE The set of objects that are in set *B* but **not** in this set *A*.
function SET_BASE:GetSetComplement(SetB)
local complement=SET_BASE:New()
local complement = self:GetSetUnion(SetB)
local intersection = self:GetSetIntersection(SetB)
local union=self:GetSetUnion(SetA, SetB)
for _,Object in pairs(union.Set) do
if SetA:IsIncludeObject(Object) and SetB:IsIncludeObject(Object) then
intersection:Add(intersection)
end
for _,Object in pairs(intersection.Set) do
complement:Remove(Object.ObjectName,true)
end
return intersection
return complement
end