mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Added Reset of event subscriptions after GROUP:Respawn()
This commit is contained in:
@@ -834,6 +834,9 @@ function GROUP:Respawn( Template )
|
|||||||
|
|
||||||
self:Destroy()
|
self:Destroy()
|
||||||
_DATABASE:Spawn( Template )
|
_DATABASE:Spawn( Template )
|
||||||
|
|
||||||
|
self:ResetEvents()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Returns the group template from the @{DATABASE} (_DATABASE object).
|
--- Returns the group template from the @{DATABASE} (_DATABASE object).
|
||||||
@@ -1085,7 +1088,7 @@ do -- Event Handling
|
|||||||
--- Reset the subscriptions.
|
--- Reset the subscriptions.
|
||||||
-- @param #GROUP self
|
-- @param #GROUP self
|
||||||
-- @return #GROUP
|
-- @return #GROUP
|
||||||
function GROUP:ResetEvents( Event )
|
function GROUP:ResetEvents()
|
||||||
|
|
||||||
self:EventDispatcher():Reset( self )
|
self:EventDispatcher():Reset( self )
|
||||||
|
|
||||||
|
|||||||
@@ -994,7 +994,7 @@ do -- Event Handling
|
|||||||
--- Reset the subscriptions.
|
--- Reset the subscriptions.
|
||||||
-- @param #UNIT self
|
-- @param #UNIT self
|
||||||
-- @return #UNIT
|
-- @return #UNIT
|
||||||
function UNIT:ResetEvents( Event )
|
function UNIT:ResetEvents()
|
||||||
|
|
||||||
self:EventDispatcher():Reset( self )
|
self:EventDispatcher():Reset( self )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user