PGRData/Script/matrix/xentity/xmaintaineraction/XDirectionChangeNodeEntity.lua

12 lines
No EOL
478 B
Lua

local XMaintainerActionNodeEntity = require("XEntity/XMaintainerAction/XMaintainerActionNodeEntity")
local XDirectionChangeNodeEntity = XClass(XMaintainerActionNodeEntity, "XDirectionChangeNodeEntity")
local CSTextManagerGetText = CS.XTextManager.GetText
function XDirectionChangeNodeEntity:DoEvent(data)
if not data then return end
data.player:DoChangeDirection()
data.player:MarkNodeEvent()
if data.cb then data.cb() end
end
return XDirectionChangeNodeEntity