blob: bb36e1112fdf0551b9aa5b3bdba03be0766cb025 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
}
}
}
}
}
|