summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/PkInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/PkInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/PkInfo.cs45
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;
+ }
+}