Fixed bug in Scheduler (a real nasty one) and SET_UNIT

This commit is contained in:
FlightControl
2016-07-23 20:26:08 +02:00
parent 906045a027
commit c10e293ff7
49 changed files with 104 additions and 63 deletions

View File

@@ -33,14 +33,15 @@ function PROCESS:New( ProcessName, Task, ProcessUnit )
self.Task = Task
self.ProcessName = ProcessName
self.ProcessScheduler = SCHEDULER:New( self.Fsm, self.NextEvent )
self.ProcessScheduler = SCHEDULER:New()
return self
end
--- @param #PROCESS self
function PROCESS:NextEvent( NextEvent, ... )
self.ProcessScheduler:Schedule( arg, 1 ) -- This schedules the next event, but only if scheduling is activated.
self:F(self.ProcessName)
self.ProcessScheduler:Schedule( self.Fsm, NextEvent, arg, 1 ) -- This schedules the next event, but only if scheduling is activated.
end
--- @param #PROCESS self