diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs | 40 |
1 files changed, 40 insertions, 0 deletions
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<ulong, uint> receivedFlowers = new Dictionary<ulong, uint>();
+
+ 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<uint>() : 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);
+ }
+ }
+ }
+ }
+}
|