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/GVGCombatInfo.cs | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs') 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; + } + } +} -- cgit v1.1-26-g67d0