diff options
| author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 | 
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 | 
| commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
| tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/PkInfo.cs | |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PkInfo.cs')
| -rw-r--r-- | Client/Assets/Scripts/XMainClient/PkInfo.cs | 45 | 
1 files changed, 45 insertions, 0 deletions
| diff --git a/Client/Assets/Scripts/XMainClient/PkInfo.cs b/Client/Assets/Scripts/XMainClient/PkInfo.cs new file mode 100644 index 00000000..165e87a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PkInfo.cs @@ -0,0 +1,45 @@ +using System;
 +using System.Collections.Generic;
 +using KKSG;
 +
 +namespace XMainClient
 +{
 +	public class PkInfo
 +	{
 +		public uint percent
 +		{
 +			get
 +			{
 +				bool flag = this.win + this.lose == 0u;
 +				uint result;
 +				if (flag)
 +				{
 +					result = 100u;
 +				}
 +				else
 +				{
 +					bool flag2 = this.win == 0u;
 +					if (flag2)
 +					{
 +						result = 0u;
 +					}
 +					else
 +					{
 +						result = Math.Max(1u, 100u * this.win / (this.win + this.lose));
 +					}
 +				}
 +				return result;
 +			}
 +		}
 +
 +		public RoleSmallInfo brief;
 +
 +		public uint win;
 +
 +		public uint lose;
 +
 +		public uint point;
 +
 +		public List<uint> records;
 +	}
 +}
 | 
