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

@@ -144,6 +144,13 @@ do -- PROCESS_SMOKE_TARGETS_ZONE
ClassName = "PROCESS_SMOKE_TARGETS_ZONE",
}
function PROCESS_SMOKE_TARGETS_ZONE:ProcessStop()
self:E("ProcessStop Detailed")
self.Menu:Remove()
end
--- Creates a new target smoking state machine. The process will request from the menu if it accepts the task, if not, the unit is removed from the simulator.
-- @param #PROCESS_SMOKE_TARGETS_ZONE self