From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/PkInfo.cs | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/PkInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/PkInfo.cs') 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 records; + } +} -- cgit v1.1-26-g67d0