summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs
new file mode 100644
index 00000000..b29a4814
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs
@@ -0,0 +1,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;
+ }
+ }
+}