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/GuildArenaHistory.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs new file mode 100644 index 00000000..17eccd73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaHistory")] + [Serializable] + public class GuildArenaHistory : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "first", DataFormat = DataFormat.Default)] + public string first + { + get + { + return this._first ?? ""; + } + set + { + this._first = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstSpecified + { + get + { + return this._first != null; + } + set + { + bool flag = value == (this._first == null); + if (flag) + { + this._first = (value ? this.first : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "second", DataFormat = DataFormat.Default)] + public string second + { + get + { + return this._second ?? ""; + } + set + { + this._second = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool secondSpecified + { + get + { + return this._second != null; + } + set + { + bool flag = value == (this._second == null); + if (flag) + { + this._second = (value ? this.second : null); + } + } + } + + private string _first; + + private string _second; + + private IExtension extensionObject; + + private bool ShouldSerializefirst() + { + return this.firstSpecified; + } + + private void Resetfirst() + { + this.firstSpecified = false; + } + + private bool ShouldSerializesecond() + { + return this.secondSpecified; + } + + private void Resetsecond() + { + this.secondSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0