sonic-radiance/sonic-radiance.love/scenes/battlesystem/choregraphy/step/addQTE.lua

27 lines
567 B
Lua
Raw Normal View History

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)
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