mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Got the process cleanup working now, when a task has finished.
ProcessStop is called for each process that is destructed... Actually, I need to implement destructors upon a garbage collection event. Found the method to do that, but need to implement it ... Next time ...
This commit is contained in:
@@ -67,11 +67,12 @@ function PROCESS:GetMission()
|
||||
return self.ProcessTask.Mission
|
||||
end
|
||||
|
||||
function PROCESS:StartEvents()
|
||||
function PROCESS:ProcessStart()
|
||||
|
||||
end
|
||||
|
||||
function PROCESS:StopEvents()
|
||||
function PROCESS:ProcessStop()
|
||||
self:E("ProcessStop Base Class")
|
||||
|
||||
self:EventRemoveAll()
|
||||
end
|
||||
@@ -85,7 +86,7 @@ function PROCESS:Assign( ProcessTask, ProcessUnit )
|
||||
self:SetControllable( ProcessUnit )
|
||||
self:SetTask( ProcessTask )
|
||||
|
||||
self:StartEvents()
|
||||
self:ProcessStart()
|
||||
|
||||
self.ProcessGroup = ProcessUnit:GetGroup()
|
||||
--self:Activate()
|
||||
|
||||
Reference in New Issue
Block a user