mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Updated Task Processing logic.
This commit is contained in:
@@ -67,6 +67,15 @@ function PROCESS:GetMission()
|
||||
return self.ProcessTask.Mission
|
||||
end
|
||||
|
||||
function PROCESS:StartEvents()
|
||||
|
||||
end
|
||||
|
||||
function PROCESS:StopEvents()
|
||||
|
||||
self:EventRemoveAll()
|
||||
end
|
||||
|
||||
--- Assign the process to a @{Unit} and activate the process.
|
||||
-- @param #PROCESS self
|
||||
-- @param Unit#UNIT ProcessUnit
|
||||
@@ -76,6 +85,8 @@ function PROCESS:Assign( ProcessTask, ProcessUnit )
|
||||
self:SetControllable( ProcessUnit )
|
||||
self:SetTask( ProcessTask )
|
||||
|
||||
self:StartEvents()
|
||||
|
||||
self.ProcessGroup = ProcessUnit:GetGroup()
|
||||
--self:Activate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user