From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/Chat/ChatFriendData.cs | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs (limited to 'Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs') diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs new file mode 100644 index 00000000..3b055021 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ChatFriendData : LoopItemData + { + public uint degreelevel + { + get + { + return (this.friendData != null) ? this.friendData.degreeAll : 0u; + } + } + + public int isOnline + { + get + { + return (this.online > 0u) ? 1 : 0; + } + } + + public XFriendData friendData + { + get + { + List friendData = DlgBase.singleton.friendData; + for (int i = 0; i < friendData.Count; i++) + { + bool flag = friendData[i].roleid == this.roleid; + if (flag) + { + return friendData[i]; + } + } + return null; + } + } + + public uint viplevel; + + public uint profession; + + public string name; + + public uint powerpoint; + + public ulong roleid; + + public bool isfriend; + + public List setid = new List(); + + public uint online; + + public DateTime msgtime = DateTime.Today; + + public bool hasOfflineRead = false; + } +} -- cgit v1.1-26-g67d0