feat: add stopMov step action

This commit is contained in:
Kazhnuz 2021-07-18 18:57:54 +02:00
parent 26ba64218b
commit cf7be0cb55
3 changed files with 23 additions and 0 deletions

View file

@ -17,6 +17,7 @@ return {
["addQTE"] = {"qteData", "origin", "blockProcess"},
["setCounter"] = {"counterName", "number", "relative"},
["useItemEffect"] = {},
["stopMov"] = {},
--[name] = {args},
},
argumentWrapper = "arguments",

View file

@ -6,6 +6,7 @@ actions["addGFX"] = require(baseURI .. "addGFX")
actions["addQTE"] = require(baseURI .. "addQTE")
actions["goTo"] = require(baseURI .. "goTo")
actions["goTo3D"] = require(baseURI .. "goTo3D")
actions["stopMov"] = require(baseURI .. "stopMov")
actions["jumpBack"] = require(baseURI .. "jumpBack")
actions["jump"] = require(baseURI .. "jump")
actions["playSFX"] = require(baseURI .. "playSFX")

View file

@ -0,0 +1,21 @@
local StepParent = require "scenes.battlesystem.controllers.fighters.systems.choregraphy.step.parent"
local StopMovStep = StepParent:extend()
function StopMovStep:new(controller, args)
StopMovStep.super.new(self, controller, args, true)
end
function StopMovStep:start()
self.choregraphy.actor:stopMoving()
self:finish()
end
function StopMovStep:update(dt)
end
function StopMovStep:getSignal(signal)
end
return StopMovStep;