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/TowerRecord2DB.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs new file mode 100644 index 00000000..bac8ce56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs @@ -0,0 +1,117 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "TowerRecord2DB")]
+ [Serializable]
+ public class TowerRecord2DB : IExtensible
+ {
+ [ProtoMember(1, Name = "records", DataFormat = DataFormat.Default)]
+ public List<TowerRecord> records
+ {
+ get
+ {
+ return this._records;
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "m_updateTime", DataFormat = DataFormat.TwosComplement)]
+ public int m_updateTime
+ {
+ get
+ {
+ return this._m_updateTime ?? 0;
+ }
+ set
+ {
+ this._m_updateTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool m_updateTimeSpecified
+ {
+ get
+ {
+ return this._m_updateTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._m_updateTime == null);
+ if (flag)
+ {
+ this._m_updateTime = (value ? new int?(this.m_updateTime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "useResetCount", DataFormat = DataFormat.TwosComplement)]
+ public int useResetCount
+ {
+ get
+ {
+ return this._useResetCount ?? 0;
+ }
+ set
+ {
+ this._useResetCount = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool useResetCountSpecified
+ {
+ get
+ {
+ return this._useResetCount != null;
+ }
+ set
+ {
+ bool flag = value == (this._useResetCount == null);
+ if (flag)
+ {
+ this._useResetCount = (value ? new int?(this.useResetCount) : null);
+ }
+ }
+ }
+
+ private readonly List<TowerRecord> _records = new List<TowerRecord>();
+
+ private int? _m_updateTime;
+
+ private int? _useResetCount;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializem_updateTime()
+ {
+ return this.m_updateTimeSpecified;
+ }
+
+ private void Resetm_updateTime()
+ {
+ this.m_updateTimeSpecified = false;
+ }
+
+ private bool ShouldSerializeuseResetCount()
+ {
+ return this.useResetCountSpecified;
+ }
+
+ private void ResetuseResetCount()
+ {
+ this.useResetCountSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|