diff --git a/Moose Development/Moose/Functional/CleanUp.lua b/Moose Development/Moose/Functional/CleanUp.lua index 7bcda11dd..9e209ff27 100644 --- a/Moose Development/Moose/Functional/CleanUp.lua +++ b/Moose Development/Moose/Functional/CleanUp.lua @@ -10,11 +10,11 @@ -- @module CleanUp --- @type CLEANUP.__ +-- @field #map<#string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases. -- @extends Core.Base#BASE --- @type CLEANUP -- @extends #CLEANUP.__ --- @field #map<#string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases. --- # CLEANUP, extends @{Base#BASE} -- @@ -66,12 +66,14 @@ CLEANUP = { ClassName = "CLEANUP", TimeInterval = 0.2, CleanUpList = {}, - Airbases = {}, } --- @field #CLEANUP.__ CLEANUP.__ = {} +--- @field #CLEANUP.__.Airbases +CLEANUP.__.Airbases = {} + --- Creates the main object which is handling the cleaning of the debris within the given Zone Names. -- @param #CLEANUP self -- @param #list<#string> AirbaseNames Is a table of airbase names where the debris should be cleaned. Also a single string can be passed with one airbase name. @@ -108,8 +110,8 @@ end -- @param #string AirbaseName -- @return #CLEANUP function CLEANUP:AddAirbase( AirbaseName ) - self.Airbases[AirbaseName] = AIRBASE:FindByName( AirbaseName ) - self:F({"Airbase:", AirbaseName, self.Airbases[AirbaseName]:GetDesc()}) + self.__.Airbases[AirbaseName] = AIRBASE:FindByName( AirbaseName ) + self:F({"Airbase:", AirbaseName, self.__.Airbases[AirbaseName]:GetDesc()}) return self end @@ -119,7 +121,7 @@ end -- @param #string AirbaseName -- @return #CLEANUP function CLEANUP:RemoveAirbase( AirbaseName ) - self.Airbases[AirbaseName] = nil + self.__.Airbases[AirbaseName] = nil return self end @@ -128,7 +130,7 @@ end function CLEANUP.__:IsInAirbase( Vec2 ) local InAirbase = false - for AirbaseName, Airbase in pairs( self.Airbases ) do + for AirbaseName, Airbase in pairs( self.__.Airbases ) do local Airbase = Airbase -- Wrapper.Airbase#AIRBASE if Airbase:GetZone():IsVec2InZone( Vec2 ) then InAirbase = true diff --git a/docs/Documentation/AI_A2A.html b/docs/Documentation/AI_A2A.html index 2a24504d1..ee2dc9007 100644 --- a/docs/Documentation/AI_A2A.html +++ b/docs/Documentation/AI_A2A.html @@ -575,7 +575,6 @@
CLEANUP| CLEANUP.< | -
- string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases. - |
- ||||||
| CLEANUP:AddAirbase(AirbaseName) |
Adds an airbase to the airbase validation list. @@ -174,9 +168,21 @@Type
|
| CLEANUP.__.< | +
+ string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases. + |
+
| CLEANUP.__:AddForCleanUp(CleanUpUnit, CleanUpUnitName) |
Add the DCSWrapper.Unit#Unit to the CleanUpList for CleanUp. + |
+
| CLEANUP.__.Airbases | ++ |