From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/DailyTaskAskHelpArg.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs new file mode 100644 index 00000000..9fbdb8c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskAskHelpArg")] + [Serializable] + public class DailyTaskAskHelpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "task_id", DataFormat = DataFormat.TwosComplement)] + public uint task_id + { + get + { + return this._task_id ?? 0u; + } + set + { + this._task_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_idSpecified + { + get + { + return this._task_id != null; + } + set + { + bool flag = value == (this._task_id == null); + if (flag) + { + this._task_id = (value ? new uint?(this.task_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "task_type", DataFormat = DataFormat.TwosComplement)] + public PeriodTaskType task_type + { + get + { + return this._task_type ?? PeriodTaskType.PeriodTaskType_Daily; + } + set + { + this._task_type = new PeriodTaskType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_typeSpecified + { + get + { + return this._task_type != null; + } + set + { + bool flag = value == (this._task_type == null); + if (flag) + { + this._task_type = (value ? new PeriodTaskType?(this.task_type) : null); + } + } + } + + private uint? _task_id; + + private PeriodTaskType? _task_type; + + private IExtension extensionObject; + + private bool ShouldSerializetask_id() + { + return this.task_idSpecified; + } + + private void Resettask_id() + { + this.task_idSpecified = false; + } + + private bool ShouldSerializetask_type() + { + return this.task_typeSpecified; + } + + private void Resettask_type() + { + this.task_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0