Class CLEANUP

CLEANUP Classes

Info:

  • Author: Flightcontrol

Methods

CLEANUP:New (ZoneNames, TimeInterval) Creates the main object which is handling the cleaning of the debris within the given Zone Names.
CLEANUP:_EventAddForCleanUp (event) Detects if the Unit has an SEVENTENGINESHUTDOWN or an SEVENT_HIT within the given ZoneNames.
CLEANUP:_Scheduler () At the defined time interval, CleanUp the Groups within the CleanUpList.


Methods

CLEANUP:New (ZoneNames, TimeInterval)
Creates the main object which is handling the cleaning of the debris within the given Zone Names.

Parameters:

  • ZoneNames table{string,...} or string which is a table of zone names where the debris should be cleaned. Also a single string can be passed with one zone name.
  • TimeInterval optional number is the interval in seconds when the clean activity takes place. The default is 300 seconds, thus every 5 minutes.

Returns:

    CLEANUP

Usage:

     -- Clean these Zones.
     CleanUpAirports = CLEANUP:New( { 'CLEAN Tbilisi', 'CLEAN Kutaisi' }, 150 )
     or
     CleanUpTbilisi = CLEANUP:New( 'CLEAN Tbilisi', 150 )
     CleanUpKutaisi = CLEANUP:New( 'CLEAN Kutaisi', 600 )
CLEANUP:_EventAddForCleanUp (event)
Detects if the Unit has an SEVENTENGINESHUTDOWN or an SEVENT_HIT within the given ZoneNames. If this is the case, add the Group to the CLEANUP List.

Parameters:

  • event
CLEANUP:_Scheduler ()
At the defined time interval, CleanUp the Groups within the CleanUpList.
generated by LDoc 1.4.3 Last updated 2015-01-29 21:06:10