From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XFlowerRankNormalInfo.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs new file mode 100644 index 00000000..bb36e111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class XFlowerRankNormalInfo : XBaseRankInfo + { + public uint flowerCount; + + public uint profession; + + public Dictionary receivedFlowers = new Dictionary(); + + public string headPicUrl; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, data.RoleName); + this.id = data.RoleId; + this.rank = data.Rank; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.flowerCount = data.flowercount; + this.profession = data.profession; + this.headPicUrl = data.headpic; + this.setid = ((data.pre == null) ? new List() : data.pre.setid); + this.receivedFlowers.Clear(); + foreach (MapIntItem mapIntItem in data.receiveFlowers) + { + bool flag = !this.receivedFlowers.ContainsKey(mapIntItem.key); + if (flag) + { + this.receivedFlowers.Add(mapIntItem.key, mapIntItem.value); + } + } + } + } +} -- cgit v1.1-26-g67d0