From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/BuySpriteEggRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs new file mode 100644 index 00000000..7309668d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuySpriteEggRes")] + [Serializable] + public class BuySpriteEggRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(3, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "goldfreebuycount", DataFormat = DataFormat.TwosComplement)] + public uint goldfreebuycount + { + get + { + return this._goldfreebuycount ?? 0u; + } + set + { + this._goldfreebuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldfreebuycountSpecified + { + get + { + return this._goldfreebuycount != null; + } + set + { + bool flag = value == (this._goldfreebuycount == null); + if (flag) + { + this._goldfreebuycount = (value ? new uint?(this.goldfreebuycount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "goldfreebuycooldown", DataFormat = DataFormat.TwosComplement)] + public uint goldfreebuycooldown + { + get + { + return this._goldfreebuycooldown ?? 0u; + } + set + { + this._goldfreebuycooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldfreebuycooldownSpecified + { + get + { + return this._goldfreebuycooldown != null; + } + set + { + bool flag = value == (this._goldfreebuycooldown == null); + if (flag) + { + this._goldfreebuycooldown = (value ? new uint?(this.goldfreebuycooldown) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _item = new List(); + + private uint? _cooldown; + + private uint? _goldfreebuycount; + + private uint? _goldfreebuycooldown; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + private bool ShouldSerializegoldfreebuycount() + { + return this.goldfreebuycountSpecified; + } + + private void Resetgoldfreebuycount() + { + this.goldfreebuycountSpecified = false; + } + + private bool ShouldSerializegoldfreebuycooldown() + { + return this.goldfreebuycooldownSpecified; + } + + private void Resetgoldfreebuycooldown() + { + this.goldfreebuycooldownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0