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/FlowerRecord.cs | 214 +++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs new file mode 100644 index 00000000..2b4f17df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FlowerRecord")] + [Serializable] + public class FlowerRecord : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "count", DataFormat = DataFormat.TwosComplement)] + public List count + { + get + { + return this._count; + } + } + + [ProtoMember(3, IsRequired = false, Name = "updateday", DataFormat = DataFormat.TwosComplement)] + public uint updateday + { + get + { + return this._updateday ?? 0u; + } + set + { + this._updateday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatedaySpecified + { + get + { + return this._updateday != null; + } + set + { + bool flag = value == (this._updateday == null); + if (flag) + { + this._updateday = (value ? new uint?(this.updateday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "getRankReward", DataFormat = DataFormat.Default)] + public bool getRankReward + { + get + { + return this._getRankReward ?? false; + } + set + { + this._getRankReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getRankRewardSpecified + { + get + { + return this._getRankReward != null; + } + set + { + bool flag = value == (this._getRankReward == null); + if (flag) + { + this._getRankReward = (value ? new bool?(this.getRankReward) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "getFlowerTime", DataFormat = DataFormat.TwosComplement)] + public uint getFlowerTime + { + get + { + return this._getFlowerTime ?? 0u; + } + set + { + this._getFlowerTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getFlowerTimeSpecified + { + get + { + return this._getFlowerTime != null; + } + set + { + bool flag = value == (this._getFlowerTime == null); + if (flag) + { + this._getFlowerTime = (value ? new uint?(this.getFlowerTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "getFlowerNum", DataFormat = DataFormat.TwosComplement)] + public uint getFlowerNum + { + get + { + return this._getFlowerNum ?? 0u; + } + set + { + this._getFlowerNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getFlowerNumSpecified + { + get + { + return this._getFlowerNum != null; + } + set + { + bool flag = value == (this._getFlowerNum == null); + if (flag) + { + this._getFlowerNum = (value ? new uint?(this.getFlowerNum) : null); + } + } + } + + private readonly List _roleid = new List(); + + private readonly List _count = new List(); + + private uint? _updateday; + + private bool? _getRankReward; + + private uint? _getFlowerTime; + + private uint? _getFlowerNum; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateday() + { + return this.updatedaySpecified; + } + + private void Resetupdateday() + { + this.updatedaySpecified = false; + } + + private bool ShouldSerializegetRankReward() + { + return this.getRankRewardSpecified; + } + + private void ResetgetRankReward() + { + this.getRankRewardSpecified = false; + } + + private bool ShouldSerializegetFlowerTime() + { + return this.getFlowerTimeSpecified; + } + + private void ResetgetFlowerTime() + { + this.getFlowerTimeSpecified = false; + } + + private bool ShouldSerializegetFlowerNum() + { + return this.getFlowerNumSpecified; + } + + private void ResetgetFlowerNum() + { + this.getFlowerNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0