2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-25 10:24:32 +02:00
|
|
|
local AnimationSetterStep = StepParent:extend()
|
|
|
|
|
|
|
|
function AnimationSetterStep:new(controller, args)
|
2021-07-17 10:15:24 +02:00
|
|
|
AnimationSetterStep.super.new(self, controller, args, true)
|
2020-07-25 10:24:32 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function AnimationSetterStep:start()
|
2021-08-07 13:36:13 +02:00
|
|
|
local actor = self:getActor(self.arguments.who)
|
2020-07-25 10:24:32 +02:00
|
|
|
|
2021-08-07 13:36:13 +02:00
|
|
|
actor:changeAnimation(self.arguments.animation)
|
|
|
|
|
|
|
|
actor:addTaggedAction(self.tag, self.choregraphy, "animation")
|
2020-07-25 10:24:32 +02:00
|
|
|
if (self.arguments.blockProcess == false) then
|
|
|
|
self:finish()
|
|
|
|
else
|
2021-08-07 13:36:13 +02:00
|
|
|
actor:blockChoregraphy(self.arguments.blockProcess, self, "animation")
|
2020-07-25 10:24:32 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function AnimationSetterStep:update(dt)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function AnimationSetterStep:getSignal(signal)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return AnimationSetterStep;
|