From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/MobaBattleRoleResult.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs new file mode 100644 index 00000000..539246dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleRoleResult")] + [Serializable] + public class MobaBattleRoleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isWin", DataFormat = DataFormat.Default)] + public bool isWin + { + get + { + return this._isWin ?? false; + } + set + { + this._isWin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isWinSpecified + { + get + { + return this._isWin != null; + } + set + { + bool flag = value == (this._isWin == null); + if (flag) + { + this._isWin = (value ? new bool?(this.isWin) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "kda", DataFormat = DataFormat.FixedSize)] + public float kda + { + get + { + return this._kda ?? 0f; + } + set + { + this._kda = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kdaSpecified + { + get + { + return this._kda != null; + } + set + { + bool flag = value == (this._kda == null); + if (flag) + { + this._kda = (value ? new float?(this.kda) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isescape", DataFormat = DataFormat.Default)] + public bool isescape + { + get + { + return this._isescape ?? false; + } + set + { + this._isescape = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isescapeSpecified + { + get + { + return this._isescape != null; + } + set + { + bool flag = value == (this._isescape == null); + if (flag) + { + this._isescape = (value ? new bool?(this.isescape) : null); + } + } + } + + [ProtoMember(5, Name = "winreward", DataFormat = DataFormat.Default)] + public List winreward + { + get + { + return this._winreward; + } + } + + private bool? _isWin; + + private uint? _heroid; + + private float? _kda; + + private bool? _isescape; + + private readonly List _winreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeisWin() + { + return this.isWinSpecified; + } + + private void ResetisWin() + { + this.isWinSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializekda() + { + return this.kdaSpecified; + } + + private void Resetkda() + { + this.kdaSpecified = false; + } + + private bool ShouldSerializeisescape() + { + return this.isescapeSpecified; + } + + private void Resetisescape() + { + this.isescapeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0