blob: b29a48146699046f40e0a2066412b4962a44dea7 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
using System;
using KKSG;
using XMainClient.UI;
using XUtliPoolLib;
namespace XMainClient
{
public class XTeamTowerRankInfo : XBaseRankInfo
{
public ulong id1;
public string name1;
public string formatname1;
public uint diff;
public uint levelCount;
public uint memberCount;
private string m_Time;
public override void ProcessData(RankData data)
{
this.memberCount = (uint)data.RoleIds.Count;
bool flag = this.memberCount > 0u;
if (flag)
{
this.name = data.RoleNames[0];
this.id = data.RoleIds[0];
this.formatname = XTitleDocument.GetTitleWithFormat((data.titleIDs.Count > 0) ? data.titleIDs[0] : 0u, XBaseRankInfo.GetUnderLineName(this.name));
}
bool flag2 = this.memberCount > 1u;
if (flag2)
{
this.name1 = data.RoleNames[1];
this.id1 = data.RoleIds[1];
this.formatname1 = XTitleDocument.GetTitleWithFormat((data.titleIDs.Count > 1) ? data.titleIDs[1] : 0u, XBaseRankInfo.GetUnderLineName(this.name1));
}
this.rank = data.Rank;
this.value = (ulong)data.towerThroughTime;
this.diff = data.towerHardLevel;
this.levelCount = data.towerFloor;
this.m_Time = XSingleton<UiUtility>.singleton.TimeFormatString((int)this.value, 2, 3, 4, false, true);
this.startType = data.starttype;
}
public override string GetValue()
{
return this.m_Time;
}
}
}
|