From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetCompeteDragonInfoRes.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs new file mode 100644 index 00000000..7e68d4c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetCompeteDragonInfoRes")] + [Serializable] + public class GetCompeteDragonInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftRewardCount", DataFormat = DataFormat.TwosComplement)] + public int leftRewardCount + { + get + { + return this._leftRewardCount ?? 0; + } + set + { + this._leftRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftRewardCountSpecified + { + get + { + return this._leftRewardCount != null; + } + set + { + bool flag = value == (this._leftRewardCount == null); + if (flag) + { + this._leftRewardCount = (value ? new int?(this.leftRewardCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalRewardCount", DataFormat = DataFormat.TwosComplement)] + public int totalRewardCount + { + get + { + return this._totalRewardCount ?? 0; + } + set + { + this._totalRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalRewardCountSpecified + { + get + { + return this._totalRewardCount != null; + } + set + { + bool flag = value == (this._totalRewardCount == null); + if (flag) + { + this._totalRewardCount = (value ? new int?(this.totalRewardCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "canCanGetRewardCount", DataFormat = DataFormat.TwosComplement)] + public int canCanGetRewardCount + { + get + { + return this._canCanGetRewardCount ?? 0; + } + set + { + this._canCanGetRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canCanGetRewardCountSpecified + { + get + { + return this._canCanGetRewardCount != null; + } + set + { + bool flag = value == (this._canCanGetRewardCount == null); + if (flag) + { + this._canCanGetRewardCount = (value ? new int?(this.canCanGetRewardCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "curDNExpID", DataFormat = DataFormat.TwosComplement)] + public uint curDNExpID + { + get + { + return this._curDNExpID ?? 0u; + } + set + { + this._curDNExpID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curDNExpIDSpecified + { + get + { + return this._curDNExpID != null; + } + set + { + bool flag = value == (this._curDNExpID == null); + if (flag) + { + this._curDNExpID = (value ? new uint?(this.curDNExpID) : null); + } + } + } + + private ErrorCode? _error; + + private int? _leftRewardCount; + + private int? _totalRewardCount; + + private int? _canCanGetRewardCount; + + private uint? _curDNExpID; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftRewardCount() + { + return this.leftRewardCountSpecified; + } + + private void ResetleftRewardCount() + { + this.leftRewardCountSpecified = false; + } + + private bool ShouldSerializetotalRewardCount() + { + return this.totalRewardCountSpecified; + } + + private void ResettotalRewardCount() + { + this.totalRewardCountSpecified = false; + } + + private bool ShouldSerializecanCanGetRewardCount() + { + return this.canCanGetRewardCountSpecified; + } + + private void ResetcanCanGetRewardCount() + { + this.canCanGetRewardCountSpecified = false; + } + + private bool ShouldSerializecurDNExpID() + { + return this.curDNExpIDSpecified; + } + + private void ResetcurDNExpID() + { + this.curDNExpIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0