From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/FirstPassRankInfo.cs | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs new file mode 100644 index 00000000..17b2ddfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassRankInfo + { + public List InfoDataList + { + get + { + return this.m_infoDataList; + } + } + + public uint PassTime + { + get + { + return this.m_passTime; + } + } + + public uint UseTime + { + get + { + return this.m_useTime; + } + } + + public string PassTimeStr + { + get + { + return this.m_passTimeStr; + } + } + + public uint StarNum + { + get + { + return this.m_starNum; + } + } + + private List m_infoDataList; + + private uint m_passTime = 0u; + + private string m_passTimeStr = string.Empty; + + private uint m_starNum = 0u; + + private uint m_useTime; + + public FirstPassRankInfo(RankData info, bool isFirstPassRank) + { + this.m_infoDataList = new List(); + for (int i = 0; i < info.RoleNames.Count; i++) + { + FirstPassInfoData item = new FirstPassInfoData(info.RoleIds[i], info.RoleNames[i], info.titleIDs[i], isFirstPassRank); + this.m_infoDataList.Add(item); + } + this.m_passTime = info.time; + this.m_starNum = info.starlevel + 1u; + this.m_useTime = info.usetime; + if (isFirstPassRank) + { + this.m_passTimeStr = XSingleton.singleton.TimeFormatSince1970((int)info.time, XStringDefineProxy.GetString("TimeFormate"), true); + } + else + { + this.m_passTimeStr = XSingleton.singleton.TimeDuarationFormatString((int)info.usetime, 5); + } + } + } +} -- cgit v1.1-26-g67d0