From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/LeagueBattleOneResultNtf.cs | 137 +++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs new file mode 100644 index 00000000..5c310b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleOneResultNtf")] + [Serializable] + public class LeagueBattleOneResultNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief winrole + { + get + { + return this._winrole; + } + set + { + this._winrole = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loserole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief loserole + { + get + { + return this._loserole; + } + set + { + this._loserole = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "winhppercent", DataFormat = DataFormat.FixedSize)] + public float winhppercent + { + get + { + return this._winhppercent ?? 0f; + } + set + { + this._winhppercent = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winhppercentSpecified + { + get + { + return this._winhppercent != null; + } + set + { + bool flag = value == (this._winhppercent == null); + if (flag) + { + this._winhppercent = (value ? new float?(this.winhppercent) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "losehppercent", DataFormat = DataFormat.FixedSize)] + public float losehppercent + { + get + { + return this._losehppercent ?? 0f; + } + set + { + this._losehppercent = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losehppercentSpecified + { + get + { + return this._losehppercent != null; + } + set + { + bool flag = value == (this._losehppercent == null); + if (flag) + { + this._losehppercent = (value ? new float?(this.losehppercent) : null); + } + } + } + + private LeagueBattleRoleBrief _winrole = null; + + private LeagueBattleRoleBrief _loserole = null; + + private float? _winhppercent; + + private float? _losehppercent; + + private IExtension extensionObject; + + private bool ShouldSerializewinhppercent() + { + return this.winhppercentSpecified; + } + + private void Resetwinhppercent() + { + this.winhppercentSpecified = false; + } + + private bool ShouldSerializelosehppercent() + { + return this.losehppercentSpecified; + } + + private void Resetlosehppercent() + { + this.losehppercentSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0