From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/XLeagueTeamRankInfo.cs | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs new file mode 100644 index 00000000..a09d7025 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs @@ -0,0 +1,44 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XLeagueTeamRankInfo : XBaseRankInfo + { + public ulong leagueTeamID; + + public uint serverID; + + public string serverName; + + public string teamName; + + public uint point; + + public uint winNum; + + public float winRate; + + public uint time; + + public uint maxContineWins; + + public override void ProcessData(RankData data) + { + this.time = data.time; + bool flag = data.leagueinfo != null; + if (flag) + { + this.leagueTeamID = data.leagueinfo.league_teamid; + this.serverID = data.leagueinfo.serverid; + this.serverName = data.leagueinfo.servername; + this.teamName = data.leagueinfo.teamname; + this.point = data.leagueinfo.point; + this.winNum = data.leagueinfo.winnum; + this.winRate = data.leagueinfo.winrate; + this.maxContineWins = data.leagueinfo.continuewin; + } + this.rank = data.Rank; + } + } +} -- cgit v1.1-26-g67d0