diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs | 105 |
1 files changed, 105 insertions, 0 deletions
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);
+ }
+ }
+}
|