diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs new file mode 100644 index 00000000..a58ed076 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs @@ -0,0 +1,39 @@ +using System;
+using System.Collections.Generic;
+using KKSG;
+
+namespace XMainClient
+{
+ public class XFlowerRankActivityInfo : 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.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);
+ }
+ }
+ }
+ }
+}
|