mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Updated Task Processing logic.
This commit is contained in:
@@ -192,6 +192,29 @@ function BASE:Event()
|
||||
return _EVENTDISPATCHER
|
||||
end
|
||||
|
||||
--- Remove all subscribed events
|
||||
-- @param #BASE self
|
||||
-- @return #BASE
|
||||
function BASE:EventRemoveAll()
|
||||
|
||||
_EVENTDISPATCHER:RemoveAll( self )
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
--- Subscribe to a S_EVENT_DEAD event.
|
||||
-- @param #BASE self
|
||||
-- @param #function EventFunction The function to be called when the event occurs for the unit.
|
||||
-- @return #BASE
|
||||
function BASE:EventOnDead( EventFunction )
|
||||
|
||||
_EVENTDISPATCHER:OnEventGeneric( EventFunction, self, world.event.S_EVENT_DEAD )
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user