summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs63
1 files changed, 63 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs
new file mode 100644
index 00000000..18c34b3f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs
@@ -0,0 +1,63 @@
+using System;
+using KKSG;
+
+namespace XMainClient
+{
+ public class GVGCombatInfo
+ {
+ public string DamageString
+ {
+ get
+ {
+ return ((int)this.Damage).ToString();
+ }
+ }
+
+ public string KillCountString
+ {
+ get
+ {
+ return this.KillCount.ToString();
+ }
+ }
+
+ public uint KillCount = 0u;
+
+ public double Damage = 0.0;
+
+ public string GuildName = string.Empty;
+
+ public ulong GuildID = 0UL;
+
+ public uint GuildIcon = 0u;
+
+ public int Score = 0;
+
+ public void Set(GmfGuildCombat combat)
+ {
+ this.Score = (int)combat.score;
+ bool flag = combat.gmfguild != null;
+ if (flag)
+ {
+ this.GuildID = combat.gmfguild.guildid;
+ this.GuildIcon = combat.gmfguild.guildicon;
+ this.GuildName = combat.gmfguild.guildname;
+ }
+ bool flag2 = combat.combat != null;
+ if (flag2)
+ {
+ this.KillCount = combat.combat.killcount;
+ this.Damage = combat.combat.damage;
+ }
+ }
+
+ public void Clear()
+ {
+ this.KillCount = 0u;
+ this.Damage = 0.0;
+ this.GuildName = string.Empty;
+ this.GuildIcon = 0u;
+ this.GuildID = 0UL;
+ }
+ }
+}