PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionFriendContact.lua

19 lines
639 B
Lua
Raw Normal View History

2022-12-26 08:36:01 +00:00
----------------------------------------------------------------
--好友联系红点检测
local XRedPointConditionFriendContact = {}
local Events = nil
function XRedPointConditionFriendContact.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENT_FRIEND_READ_PRIVATE_MSG),
XRedPointEventElement.New(XEventId.EVENT_FRIEND_DELETE),
XRedPointEventElement.New(XEventId.EVENT_CHAT_RECEIVE_PRIVATECHAT),
}
return Events
end
function XRedPointConditionFriendContact.Check()
return XDataCenter.ChatManager.GetAllPrivateChatMsgCount()
end
return XRedPointConditionFriendContact