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/FiveRewardRes.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs new file mode 100644 index 00000000..c2d3459b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FiveRewardRes")] + [Serializable] + public class FiveRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "twoday", DataFormat = DataFormat.Default)] + public bool twoday + { + get + { + return this._twoday ?? false; + } + set + { + this._twoday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool twodaySpecified + { + get + { + return this._twoday != null; + } + set + { + bool flag = value == (this._twoday == null); + if (flag) + { + this._twoday = (value ? new bool?(this.twoday) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fiveday", DataFormat = DataFormat.Default)] + public bool fiveday + { + get + { + return this._fiveday ?? false; + } + set + { + this._fiveday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fivedaySpecified + { + get + { + return this._fiveday != null; + } + set + { + bool flag = value == (this._fiveday == null); + if (flag) + { + this._fiveday = (value ? new bool?(this.fiveday) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "threeday", DataFormat = DataFormat.Default)] + public bool threeday + { + get + { + return this._threeday ?? false; + } + set + { + this._threeday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool threedaySpecified + { + get + { + return this._threeday != null; + } + set + { + bool flag = value == (this._threeday == null); + if (flag) + { + this._threeday = (value ? new bool?(this.threeday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sevenday", DataFormat = DataFormat.Default)] + public bool sevenday + { + get + { + return this._sevenday ?? false; + } + set + { + this._sevenday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sevendaySpecified + { + get + { + return this._sevenday != null; + } + set + { + bool flag = value == (this._sevenday == null); + if (flag) + { + this._sevenday = (value ? new bool?(this.sevenday) : null); + } + } + } + + private bool? _twoday; + + private bool? _fiveday; + + private bool? _threeday; + + private bool? _sevenday; + + private IExtension extensionObject; + + private bool ShouldSerializetwoday() + { + return this.twodaySpecified; + } + + private void Resettwoday() + { + this.twodaySpecified = false; + } + + private bool ShouldSerializefiveday() + { + return this.fivedaySpecified; + } + + private void Resetfiveday() + { + this.fivedaySpecified = false; + } + + private bool ShouldSerializethreeday() + { + return this.threedaySpecified; + } + + private void Resetthreeday() + { + this.threedaySpecified = false; + } + + private bool ShouldSerializesevenday() + { + return this.sevendaySpecified; + } + + private void Resetsevenday() + { + this.sevendaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0