LUADOC - Farming Simulator 19

SimpleState

Description
States to be used with SimpleStateMachine
Functions

activate

Description
Activate method
Definition
activate()
Code
32function SimpleState:activate(parms)
33end

deactivate

Description
Deactivate method
Definition
deactivate()
Code
37function SimpleState:deactivate()
38end

delete

Description
Definition
delete()
Code
27function SimpleState:delete()
28end

new

Description
Creating instance of lightweight state machine.
Definition
new()
Code
16function SimpleState:new(id, owner, stateMachine, custom_mt)
17 local self = {}
18 setmetatable(self, custom_mt or SimpleState_mt)
19 self.id = id
20 self.owner = owner
21 self.stateMachine = stateMachine
22 return self
23end

update

Description
update method
Definition
update(float dt)
Arguments
floatdtin ms
Code
43function SimpleState:update(dt)
44end