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()
function StepGFX:new(controller, args)
StepGFX.super.new(self, controller, args)
StepGFX.super.new(self, controller, args, true)
end
function StepGFX:start()

View file

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

View file

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

View file

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

View file

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

View file

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