2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-31 20:06:35 +02:00
|
|
|
local StepQTE = StepParent:extend()
|
|
|
|
|
|
|
|
function StepQTE:new(controller, args)
|
2021-07-17 10:15:24 +02:00
|
|
|
StepQTE.super.new(self, controller, args, true)
|
2020-07-31 20:06:35 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function StepQTE:start()
|
2021-07-17 21:23:29 +02:00
|
|
|
self.choregraphy:addQTE(self, self.arguments.origin, self.arguments.qteData, self.arguments.blockProcess, self.tag)
|
2020-07-31 20:06:35 +02:00
|
|
|
if (not self.arguments.blockProcess) then
|
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function StepQTE:update(dt)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function StepQTE:getSignal(signal)
|
2021-04-25 12:20:12 +02:00
|
|
|
if (signal == "qteEnded") then
|
2020-07-31 20:06:35 +02:00
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return StepQTE
|