PGRData/Resources/Scripts/XEntity/XMaintainerAction/XDirectionChangeNodeEntity.lua

12 lines
478 B
Lua
Raw Normal View History

2022-12-26 14:06:01 +05:30
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