PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionSpecialTrain.lua
2022-12-26 14:06:01 +05:30

29 lines
No EOL
824 B
Lua

----------------------------------------------------------------
local XRedPointConditionSpecialTrain = {}
local Events = nil
local SubCondition = nil
function XRedPointConditionSpecialTrain.GetSubEvents()
Events = Events or {
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC),
}
return Events
end
function XRedPointConditionSpecialTrain.GetSubConditions()
SubCondition = SubCondition or {
XRedPointConditions.Types.CONDITION_SPECIALTRAINPOINT_RED,
}
return SubCondition
end
function XRedPointConditionSpecialTrain.Check()
if XDataCenter.FubenSpecialTrainManager.CheckConditionSpecialTrainRedPoint() then
return true
end
if XRedPointConditionSpecialTrainPoint.Check() then
return true
end
return false
end
return XRedPointConditionSpecialTrain