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/TShowVoteRecord.cs | 117 +++++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs new file mode 100644 index 00000000..fb53507e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TShowVoteRecord")] + [Serializable] + public class TShowVoteRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public int updateTime + { + get + { + return this._updateTime ?? 0; + } + set + { + this._updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new int?(this.updateTime) : null); + } + } + } + + [ProtoMember(2, Name = "voteData", DataFormat = DataFormat.Default)] + public List voteData + { + get + { + return this._voteData; + } + } + + [ProtoMember(3, IsRequired = false, Name = "haveSendRank", DataFormat = DataFormat.Default)] + public bool haveSendRank + { + get + { + return this._haveSendRank ?? false; + } + set + { + this._haveSendRank = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool haveSendRankSpecified + { + get + { + return this._haveSendRank != null; + } + set + { + bool flag = value == (this._haveSendRank == null); + if (flag) + { + this._haveSendRank = (value ? new bool?(this.haveSendRank) : null); + } + } + } + + private int? _updateTime; + + private readonly List _voteData = new List(); + + private bool? _haveSendRank; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializehaveSendRank() + { + return this.haveSendRankSpecified; + } + + private void ResethaveSendRank() + { + this.haveSendRankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0