summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs171
1 files changed, 171 insertions, 0 deletions
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<MapKeyValue> trigger_time
+ {
+ get
+ {
+ return this._trigger_time;
+ }
+ }
+
+ [ProtoMember(3, Name = "used_count", DataFormat = DataFormat.Default)]
+ public List<MapKeyValue> 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<MapKeyValue> _trigger_time = new List<MapKeyValue>();
+
+ private readonly List<MapKeyValue> _used_count = new List<MapKeyValue>();
+
+ 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);
+ }
+ }
+}