2021-08-15 16:34:36 +02:00
|
|
|
local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
|
2020-07-24 21:54:12 +02:00
|
|
|
local StepGFX = StepParent:extend()
|
|
|
|
|
|
|
|
function StepGFX:new(controller, args)
|
2021-07-17 10:15:24 +02:00
|
|
|
StepGFX.super.new(self, controller, args, true)
|
2020-07-24 21:54:12 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function StepGFX:start()
|
2021-07-27 12:45:41 +02:00
|
|
|
local x, y, z = self:getStepCoordinate()
|
2020-07-24 21:54:12 +02:00
|
|
|
|
2021-07-27 12:45:41 +02:00
|
|
|
self.choregraphy.world.obj.GFX(self.choregraphy.world, x, y, z, self.arguments.sprite, self, self.arguments.blockProcess, self.tag)
|
2020-07-24 21:54:12 +02:00
|
|
|
|
|
|
|
if (not self.arguments.blockProcess) then
|
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
function StepGFX:update(dt)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
function StepGFX:getSignal(signal)
|
|
|
|
if (signal == "gfxEnded") then
|
|
|
|
self:finish()
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return StepGFX
|