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

22 lines
No EOL
664 B
Lua

----------------------------------------------------------------
--角色入口红点检测
local XRedPointConditionMainDispatch = {}
local Events = nil
function XRedPointConditionMainDispatch.Check()
return XDataCenter.TaskForceManager.CheckTaskForceCompleted()
end
function XRedPointConditionMainDispatch.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_TASKFORCE_TASKFINISH_REQUEST),
XRedPointEventElement.New(XEventId.EVENT_TASKFORCE_COMPLETE_NOTIFY),
XRedPointEventElement.New(XEventId.EVENT_TASKFORCE_ACCEPT_REWARD_REQUEST),
}
return Events
end
return XRedPointConditionMainDispatch