summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs105
1 files changed, 105 insertions, 0 deletions
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);
+ }
+ }
+}