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/DERankChangePara.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs new file mode 100644 index 00000000..dd6d661b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DERankChangePara")] + [Serializable] + public class DERankChangePara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "oldrank", DataFormat = DataFormat.TwosComplement)] + public int oldrank + { + get + { + return this._oldrank ?? 0; + } + set + { + this._oldrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oldrankSpecified + { + get + { + return this._oldrank != null; + } + set + { + bool flag = value == (this._oldrank == null); + if (flag) + { + this._oldrank = (value ? new int?(this.oldrank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "newrank", DataFormat = DataFormat.TwosComplement)] + public int newrank + { + get + { + return this._newrank ?? 0; + } + set + { + this._newrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool newrankSpecified + { + get + { + return this._newrank != null; + } + set + { + bool flag = value == (this._newrank == null); + if (flag) + { + this._newrank = (value ? new int?(this.newrank) : null); + } + } + } + + private int? _oldrank; + + private int? _newrank; + + private IExtension extensionObject; + + private bool ShouldSerializeoldrank() + { + return this.oldrankSpecified; + } + + private void Resetoldrank() + { + this.oldrankSpecified = false; + } + + private bool ShouldSerializenewrank() + { + return this.newrankSpecified; + } + + private void Resetnewrank() + { + this.newrankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0