mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Bugfix GroupSet
This commit is contained in:
parent
41375f4491
commit
69c11ca1c6
@ -57,7 +57,6 @@ Include.File( "Set" )
|
|||||||
-- @extends Set#SET
|
-- @extends Set#SET
|
||||||
GROUPSET = {
|
GROUPSET = {
|
||||||
ClassName = "GROUPSET",
|
ClassName = "GROUPSET",
|
||||||
Units = {},
|
|
||||||
Filter = {
|
Filter = {
|
||||||
Coalitions = nil,
|
Coalitions = nil,
|
||||||
Categories = nil,
|
Categories = nil,
|
||||||
@ -100,7 +99,7 @@ end
|
|||||||
-- @param #GROUPSET self
|
-- @param #GROUPSET self
|
||||||
-- @param #string GroupName
|
-- @param #string GroupName
|
||||||
-- @return Group#GROUP The found Group.
|
-- @return Group#GROUP The found Group.
|
||||||
function GROUPSET:FindUnit( GroupName )
|
function GROUPSET:FindGroup( GroupName )
|
||||||
|
|
||||||
local GroupFound = self.Set[GroupName]
|
local GroupFound = self.Set[GroupName]
|
||||||
return GroupFound
|
return GroupFound
|
||||||
@ -228,7 +227,7 @@ end
|
|||||||
-- @param #GROUPSET self
|
-- @param #GROUPSET self
|
||||||
-- @param #function IteratorFunction The function that will be called when there is an alive GROUP in the GROUPSET. The function needs to accept a GROUP parameter.
|
-- @param #function IteratorFunction The function that will be called when there is an alive GROUP in the GROUPSET. The function needs to accept a GROUP parameter.
|
||||||
-- @return #GROUPSET self
|
-- @return #GROUPSET self
|
||||||
function GROUPSET:ForEachUnit( IteratorFunction, ... )
|
function GROUPSET:ForEachGroup( IteratorFunction, ... )
|
||||||
self:F2( arg )
|
self:F2( arg )
|
||||||
|
|
||||||
self:ForEach( IteratorFunction, arg, self.Set )
|
self:ForEach( IteratorFunction, arg, self.Set )
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user