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

18 lines
No EOL
621 B
Lua

local XRedPointConditionMineSweepingRed = {}
local Events = nil
function XRedPointConditionMineSweepingRed.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_MAINUI_ENABLE),
XRedPointEventElement.New(XEventId.EVENT_MINESWEEPING_STAGESTART),
XRedPointEventElement.New(XEventId.EVENT_MINESWEEPING_GRIDOPEN),
XRedPointEventElement.New(XEventId.EVENT_MINESWEEPING_STORYPLAY),
}
return Events
end
function XRedPointConditionMineSweepingRed.Check()
return XDataCenter.MineSweepingManager.CheckHaveRed()
end
return XRedPointConditionMineSweepingRed