From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/LeagueBattleResultRole.cs | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs new file mode 100644 index 00000000..ca51d983 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleResultRole")] + [Serializable] + public class LeagueBattleResultRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "basedata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief basedata + { + get + { + return this._basedata; + } + set + { + this._basedata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "killnum", DataFormat = DataFormat.TwosComplement)] + public uint killnum + { + get + { + return this._killnum ?? 0u; + } + set + { + this._killnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killnumSpecified + { + get + { + return this._killnum != null; + } + set + { + bool flag = value == (this._killnum == null); + if (flag) + { + this._killnum = (value ? new uint?(this.killnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_up", DataFormat = DataFormat.Default)] + public bool is_up + { + get + { + return this._is_up ?? false; + } + set + { + this._is_up = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_upSpecified + { + get + { + return this._is_up != null; + } + set + { + bool flag = value == (this._is_up == null); + if (flag) + { + this._is_up = (value ? new bool?(this.is_up) : null); + } + } + } + + private LeagueBattleRoleBrief _basedata = null; + + private uint? _killnum; + + private bool? _is_up; + + private IExtension extensionObject; + + private bool ShouldSerializekillnum() + { + return this.killnumSpecified; + } + + private void Resetkillnum() + { + this.killnumSpecified = false; + } + + private bool ShouldSerializeis_up() + { + return this.is_upSpecified; + } + + private void Resetis_up() + { + this.is_upSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0