PGRData/Resources/Scripts/XEntity/XMaintainerAction/XDirectionChangeNodeEntity.lua
2022-12-26 14:06:01 +05:30

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