From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/SQARecord.cs | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs new file mode 100644 index 00000000..b8d0301e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SQARecord")] + [Serializable] + public class SQARecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cur_qa_type", DataFormat = DataFormat.TwosComplement)] + public uint cur_qa_type + { + get + { + return this._cur_qa_type ?? 0u; + } + set + { + this._cur_qa_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cur_qa_typeSpecified + { + get + { + return this._cur_qa_type != null; + } + set + { + bool flag = value == (this._cur_qa_type == null); + if (flag) + { + this._cur_qa_type = (value ? new uint?(this.cur_qa_type) : null); + } + } + } + + [ProtoMember(2, Name = "trigger_time", DataFormat = DataFormat.Default)] + public List trigger_time + { + get + { + return this._trigger_time; + } + } + + [ProtoMember(3, Name = "used_count", DataFormat = DataFormat.Default)] + public List used_count + { + get + { + return this._used_count; + } + } + + [ProtoMember(4, IsRequired = false, Name = "last_reset_time", DataFormat = DataFormat.TwosComplement)] + public uint last_reset_time + { + get + { + return this._last_reset_time ?? 0u; + } + set + { + this._last_reset_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_reset_timeSpecified + { + get + { + return this._last_reset_time != null; + } + set + { + bool flag = value == (this._last_reset_time == null); + if (flag) + { + this._last_reset_time = (value ? new uint?(this.last_reset_time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "last_end_time", DataFormat = DataFormat.TwosComplement)] + public uint last_end_time + { + get + { + return this._last_end_time ?? 0u; + } + set + { + this._last_end_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_end_timeSpecified + { + get + { + return this._last_end_time != null; + } + set + { + bool flag = value == (this._last_end_time == null); + if (flag) + { + this._last_end_time = (value ? new uint?(this.last_end_time) : null); + } + } + } + + private uint? _cur_qa_type; + + private readonly List _trigger_time = new List(); + + private readonly List _used_count = new List(); + + private uint? _last_reset_time; + + private uint? _last_end_time; + + private IExtension extensionObject; + + private bool ShouldSerializecur_qa_type() + { + return this.cur_qa_typeSpecified; + } + + private void Resetcur_qa_type() + { + this.cur_qa_typeSpecified = false; + } + + private bool ShouldSerializelast_reset_time() + { + return this.last_reset_timeSpecified; + } + + private void Resetlast_reset_time() + { + this.last_reset_timeSpecified = false; + } + + private bool ShouldSerializelast_end_time() + { + return this.last_end_timeSpecified; + } + + private void Resetlast_end_time() + { + this.last_end_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0