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/SpActivity.cs | 149 +++++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs new file mode 100644 index 00000000..5bccc0c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivity")] + [Serializable] + public class SpActivity : IExtensible + { + [ProtoMember(1, Name = "spActivity", DataFormat = DataFormat.Default)] + public List spActivity + { + get + { + return this._spActivity; + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastBackFlowStartTime", DataFormat = DataFormat.TwosComplement)] + public uint lastBackFlowStartTime + { + get + { + return this._lastBackFlowStartTime ?? 0u; + } + set + { + this._lastBackFlowStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastBackFlowStartTimeSpecified + { + get + { + return this._lastBackFlowStartTime != null; + } + set + { + bool flag = value == (this._lastBackFlowStartTime == null); + if (flag) + { + this._lastBackFlowStartTime = (value ? new uint?(this.lastBackFlowStartTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "argentaPreData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArgentaPreData argentaPreData + { + get + { + return this._argentaPreData; + } + set + { + this._argentaPreData = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastArgentaStartTime", DataFormat = DataFormat.TwosComplement)] + public uint lastArgentaStartTime + { + get + { + return this._lastArgentaStartTime ?? 0u; + } + set + { + this._lastArgentaStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastArgentaStartTimeSpecified + { + get + { + return this._lastArgentaStartTime != null; + } + set + { + bool flag = value == (this._lastArgentaStartTime == null); + if (flag) + { + this._lastArgentaStartTime = (value ? new uint?(this.lastArgentaStartTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "backflowPreData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowPreData backflowPreData + { + get + { + return this._backflowPreData; + } + set + { + this._backflowPreData = value; + } + } + + private readonly List _spActivity = new List(); + + private uint? _lastBackFlowStartTime; + + private ArgentaPreData _argentaPreData = null; + + private uint? _lastArgentaStartTime; + + private BackFlowPreData _backflowPreData = null; + + private IExtension extensionObject; + + private bool ShouldSerializelastBackFlowStartTime() + { + return this.lastBackFlowStartTimeSpecified; + } + + private void ResetlastBackFlowStartTime() + { + this.lastBackFlowStartTimeSpecified = false; + } + + private bool ShouldSerializelastArgentaStartTime() + { + return this.lastArgentaStartTimeSpecified; + } + + private void ResetlastArgentaStartTime() + { + this.lastArgentaStartTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0