Got CARGO working now with new FSM mechanism

This commit is contained in:
FlightControl
2016-12-06 12:05:02 +01:00
parent b72a1c5c6b
commit 3496550cb3
117 changed files with 62 additions and 58 deletions

View File

@@ -419,10 +419,12 @@ FSM_PROCESS = {
-- @return #FSM_PROCESS
function FSM_PROCESS:New( FsmT, Controllable, Task )
FsmT = FsmT or FSM_TEMPLATE:New( "" )
local self = BASE:Inherit( self, FSM_CONTROLLABLE:New( FsmT ) ) -- Fsm.Fsm#FSM_PROCESS
self:Assign( Controllable, Task )
self.ClassName = FsmT._Name
for ParameterID, Parameter in pairs( FsmT:GetParameters() ) do
self[ ParameterID ] = Parameter