From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/TowerRecord2DB.cs | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs') 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 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 _records = new List(); + + 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); + } + } +} -- cgit v1.1-26-g67d0