feat: mark potentially async choregraphy step

This commit is contained in:
Kazhnuz 2021-07-17 10:15:24 +02:00
parent bda80d4f20
commit 7940d9c74c
6 changed files with 7 additions and 6 deletions

View file

@ -2,7 +2,7 @@ local StepParent = require "scenes.battlesystem.controllers.fighters.systems.cho
local StepGFX = StepParent:extend() local StepGFX = StepParent:extend()
function StepGFX:new(controller, args) function StepGFX:new(controller, args)
StepGFX.super.new(self, controller, args) StepGFX.super.new(self, controller, args, true)
end end
function StepGFX:start() function StepGFX:start()

View file

@ -2,7 +2,7 @@ local StepParent = require "scenes.battlesystem.controllers.fighters.systems.cho
local StepQTE = StepParent:extend() local StepQTE = StepParent:extend()
function StepQTE:new(controller, args) function StepQTE:new(controller, args)
StepQTE.super.new(self, controller, args) StepQTE.super.new(self, controller, args, true)
end end
function StepQTE:start() function StepQTE:start()

View file

@ -2,7 +2,7 @@ local StepParent = require "scenes.battlesystem.controllers.fighters.systems.cho
local GoToStep = StepParent:extend() local GoToStep = StepParent:extend()
function GoToStep:new(controller, args) function GoToStep:new(controller, args)
GoToStep.super.new(self, controller, args) GoToStep.super.new(self, controller, args, true)
end end
function GoToStep:start() function GoToStep:start()

View file

@ -2,7 +2,7 @@ local StepParent = require "scenes.battlesystem.controllers.fighters.systems.cho
local JumpBackStep = StepParent:extend() local JumpBackStep = StepParent:extend()
function JumpBackStep:new(controller, args) function JumpBackStep:new(controller, args)
JumpBackStep.super.new(self, controller, args) JumpBackStep.super.new(self, controller, args, true)
end end
function JumpBackStep:start() function JumpBackStep:start()

View file

@ -1,9 +1,10 @@
local StepParent = Object:extend() local StepParent = Object:extend()
function StepParent:new(choregraphySystem, arguments) function StepParent:new(choregraphySystem, arguments, canBeAsync)
self.choregraphy = choregraphySystem self.choregraphy = choregraphySystem
self.arguments = arguments self.arguments = arguments
self.isStarted = false self.isStarted = false
self.canBeAsync = (canBeAsync == true)
end end
function StepParent:updateStep(dt) function StepParent:updateStep(dt)

View file

@ -2,7 +2,7 @@ local StepParent = require "scenes.battlesystem.controllers.fighters.systems.cho
local AnimationSetterStep = StepParent:extend() local AnimationSetterStep = StepParent:extend()
function AnimationSetterStep:new(controller, args) function AnimationSetterStep:new(controller, args)
AnimationSetterStep.super.new(self, controller, args) AnimationSetterStep.super.new(self, controller, args, true)
end end
function AnimationSetterStep:start() function AnimationSetterStep:start()