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/SpActivityOne.cs | 315 +++++++++++++++++++++ 1 file changed, 315 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs new file mode 100644 index 00000000..c6ecc46b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivityOne")] + [Serializable] + public class SpActivityOne : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(2, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + [ProtoMember(3, IsRequired = false, Name = "getBigPrize", DataFormat = DataFormat.Default)] + public bool getBigPrize + { + get + { + return this._getBigPrize ?? false; + } + set + { + this._getBigPrize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getBigPrizeSpecified + { + get + { + return this._getBigPrize != null; + } + set + { + bool flag = value == (this._getBigPrize == null); + if (flag) + { + this._getBigPrize = (value ? new bool?(this.getBigPrize) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "startTime", DataFormat = DataFormat.TwosComplement)] + public uint startTime + { + get + { + return this._startTime ?? 0u; + } + set + { + this._startTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startTimeSpecified + { + get + { + return this._startTime != null; + } + set + { + bool flag = value == (this._startTime == null); + if (flag) + { + this._startTime = (value ? new uint?(this.startTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "actStage", DataFormat = DataFormat.TwosComplement)] + public uint actStage + { + get + { + return this._actStage ?? 0u; + } + set + { + this._actStage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actStageSpecified + { + get + { + return this._actStage != null; + } + set + { + bool flag = value == (this._actStage == null); + if (flag) + { + this._actStage = (value ? new uint?(this.actStage) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "argenta", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArgentaData argenta + { + get + { + return this._argenta; + } + set + { + this._argenta = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ancient", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AncientTimes ancient + { + get + { + return this._ancient; + } + set + { + this._ancient = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "theme", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ThemeActivityData theme + { + get + { + return this._theme; + } + set + { + this._theme = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "backflow", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowData backflow + { + get + { + return this._backflow; + } + set + { + this._backflow = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "campduel", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CampDuelData campduel + { + get + { + return this._campduel; + } + set + { + this._campduel = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "festival520", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Festival520Data festival520 + { + get + { + return this._festival520; + } + set + { + this._festival520 = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "shadowcat", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ShadowCatData shadowcat + { + get + { + return this._shadowcat; + } + set + { + this._shadowcat = value; + } + } + + private uint? _actid; + + private readonly List _task = new List(); + + private bool? _getBigPrize; + + private uint? _startTime; + + private uint? _actStage; + + private ArgentaData _argenta = null; + + private AncientTimes _ancient = null; + + private ThemeActivityData _theme = null; + + private BackFlowData _backflow = null; + + private CampDuelData _campduel = null; + + private Festival520Data _festival520 = null; + + private ShadowCatData _shadowcat = null; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializegetBigPrize() + { + return this.getBigPrizeSpecified; + } + + private void ResetgetBigPrize() + { + this.getBigPrizeSpecified = false; + } + + private bool ShouldSerializestartTime() + { + return this.startTimeSpecified; + } + + private void ResetstartTime() + { + this.startTimeSpecified = false; + } + + private bool ShouldSerializeactStage() + { + return this.actStageSpecified; + } + + private void ResetactStage() + { + this.actStageSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0