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

17 lines
No EOL
559 B
Lua

local XRedPointConditionDiceGameRed = {}
local Events = nil
function XRedPointConditionDiceGameRed.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_MAINUI_ENABLE),
XRedPointEventElement.New(XEventId.EVENT_DICEGAME_CONFIRM),
XRedPointEventElement.New(XEventId.EVENT_DICEGAME_GET_REWARD),
}
return Events
end
function XRedPointConditionDiceGameRed.Check()
return XDataCenter.DiceGameManager.CheckRedPoint()
end
return XRedPointConditionDiceGameRed