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/BattleRewardChest.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs new file mode 100644 index 00000000..f57795b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleRewardChest")] + [Serializable] + public class BattleRewardChest : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chestType", DataFormat = DataFormat.TwosComplement)] + public int chestType + { + get + { + return this._chestType ?? 0; + } + set + { + this._chestType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chestTypeSpecified + { + get + { + return this._chestType != null; + } + set + { + bool flag = value == (this._chestType == null); + if (flag) + { + this._chestType = (value ? new int?(this.chestType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public int itemID + { + get + { + return this._itemID ?? 0; + } + set + { + this._itemID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new int?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public int itemCount + { + get + { + return this._itemCount ?? 0; + } + set + { + this._itemCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemCountSpecified + { + get + { + return this._itemCount != null; + } + set + { + bool flag = value == (this._itemCount == null); + if (flag) + { + this._itemCount = (value ? new int?(this.itemCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isbind", DataFormat = DataFormat.Default)] + public bool isbind + { + get + { + return this._isbind ?? false; + } + set + { + this._isbind = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbindSpecified + { + get + { + return this._isbind != null; + } + set + { + bool flag = value == (this._isbind == null); + if (flag) + { + this._isbind = (value ? new bool?(this.isbind) : null); + } + } + } + + private int? _chestType; + + private int? _itemID; + + private int? _itemCount; + + private bool? _isbind; + + private IExtension extensionObject; + + private bool ShouldSerializechestType() + { + return this.chestTypeSpecified; + } + + private void ResetchestType() + { + this.chestTypeSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeitemCount() + { + return this.itemCountSpecified; + } + + private void ResetitemCount() + { + this.itemCountSpecified = false; + } + + private bool ShouldSerializeisbind() + { + return this.isbindSpecified; + } + + private void Resetisbind() + { + this.isbindSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0