From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs | 193 +++++++++++++++++++++ 1 file changed, 193 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs new file mode 100644 index 00000000..2dee7c91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildTaskInfoRes")] + [Serializable] + public class GetDragonGuildTaskInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(3, Name = "taskrecord", DataFormat = DataFormat.Default)] + public List taskrecord + { + get + { + return this._taskrecord; + } + } + + [ProtoMember(4, Name = "taskcompleted", DataFormat = DataFormat.Default)] + public List taskcompleted + { + get + { + return this._taskcompleted; + } + } + + [ProtoMember(5, Name = "achiverecord", DataFormat = DataFormat.Default)] + public List achiverecord + { + get + { + return this._achiverecord; + } + } + + [ProtoMember(6, Name = "achivecompleted", DataFormat = DataFormat.Default)] + public List achivecompleted + { + get + { + return this._achivecompleted; + } + } + + [ProtoMember(7, IsRequired = false, Name = "task_refreshtime", DataFormat = DataFormat.Default)] + public string task_refreshtime + { + get + { + return this._task_refreshtime ?? ""; + } + set + { + this._task_refreshtime = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_refreshtimeSpecified + { + get + { + return this._task_refreshtime != null; + } + set + { + bool flag = value == (this._task_refreshtime == null); + if (flag) + { + this._task_refreshtime = (value ? this.task_refreshtime : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _exp; + + private readonly List _taskrecord = new List(); + + private readonly List _taskcompleted = new List(); + + private readonly List _achiverecord = new List(); + + private readonly List _achivecompleted = new List(); + + private string _task_refreshtime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializetask_refreshtime() + { + return this.task_refreshtimeSpecified; + } + + private void Resettask_refreshtime() + { + this.task_refreshtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0