PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionRpgMakerGame.lua

25 lines
781 B
Lua
Raw Normal View History

local XRedPointConditionRpgMakerGame = {}
local Events = nil
function XRedPointConditionRpgMakerGame.GetSubEvents()
Events =
Events or
{
XRedPointEventElement.New(XEventId.EVENT_TASK_SYNC)
}
return Events
end
function XRedPointConditionRpgMakerGame.Check()
if not XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.RpgMakerActivity) then
return false
end
local taskRedot = XDataCenter.RpgMakerGameManager.CheckRedPoint()
local chapterGroupRedot = XDataCenter.RpgMakerGameManager.CheckAllChapterGroupRedPoint()
local chapterRedot = XDataCenter.RpgMakerGameManager.CheckFirstChapterGroupRedPoint()
return taskRedot or chapterGroupRedot or chapterRedot
end
return XRedPointConditionRpgMakerGame