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:
FlightControl
2016-11-11 15:42:08 +01:00
parent 1bd61837f2
commit 07f6760039
11 changed files with 24 additions and 13 deletions

View File

@@ -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()