From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetDailyTaskInfoRes.cs | 332 +++++++++++++++++++++ 1 file changed, 332 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs new file mode 100644 index 00000000..a4a99690 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskInfoRes")] + [Serializable] + public class GetDailyTaskInfoRes : IExtensible + { + [ProtoMember(1, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_rewarded", DataFormat = DataFormat.Default)] + public bool is_rewarded + { + get + { + return this._is_rewarded ?? false; + } + set + { + this._is_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_rewardedSpecified + { + get + { + return this._is_rewarded != null; + } + set + { + bool flag = value == (this._is_rewarded == null); + if (flag) + { + this._is_rewarded = (value ? new bool?(this.is_rewarded) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "accept_level", DataFormat = DataFormat.TwosComplement)] + public uint accept_level + { + get + { + return this._accept_level ?? 0u; + } + set + { + this._accept_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accept_levelSpecified + { + get + { + return this._accept_level != null; + } + set + { + bool flag = value == (this._accept_level == null); + if (flag) + { + this._accept_level = (value ? new uint?(this.accept_level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "askhelp_num", DataFormat = DataFormat.TwosComplement)] + public uint askhelp_num + { + get + { + return this._askhelp_num ?? 0u; + } + set + { + this._askhelp_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool askhelp_numSpecified + { + get + { + return this._askhelp_num != null; + } + set + { + bool flag = value == (this._askhelp_num == null); + if (flag) + { + this._askhelp_num = (value ? new uint?(this.askhelp_num) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "remain_refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint remain_refresh_count + { + get + { + return this._remain_refresh_count ?? 0u; + } + set + { + this._remain_refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remain_refresh_countSpecified + { + get + { + return this._remain_refresh_count != null; + } + set + { + bool flag = value == (this._remain_refresh_count == null); + if (flag) + { + this._remain_refresh_count = (value ? new uint?(this.remain_refresh_count) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + private readonly List _task = new List(); + + private bool? _is_rewarded; + + private uint? _count; + + private uint? _accept_level; + + private uint? _askhelp_num; + + private uint? _score; + + private uint? _remain_refresh_count; + + private uint? _luck; + + private IExtension extensionObject; + + private bool ShouldSerializeis_rewarded() + { + return this.is_rewardedSpecified; + } + + private void Resetis_rewarded() + { + this.is_rewardedSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeaccept_level() + { + return this.accept_levelSpecified; + } + + private void Resetaccept_level() + { + this.accept_levelSpecified = false; + } + + private bool ShouldSerializeaskhelp_num() + { + return this.askhelp_numSpecified; + } + + private void Resetaskhelp_num() + { + this.askhelp_numSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeremain_refresh_count() + { + return this.remain_refresh_countSpecified; + } + + private void Resetremain_refresh_count() + { + this.remain_refresh_countSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0