summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs277
1 files changed, 277 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs
new file mode 100644
index 00000000..c2a7f9ee
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs
@@ -0,0 +1,277 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "UpdatePartnerToClient")]
+ [Serializable]
+ public class UpdatePartnerToClient : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)]
+ public PartnerUpdateType type
+ {
+ get
+ {
+ return this._type ?? PartnerUpdateType.PUType_Normal;
+ }
+ set
+ {
+ this._type = new PartnerUpdateType?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool typeSpecified
+ {
+ get
+ {
+ return this._type != null;
+ }
+ set
+ {
+ bool flag = value == (this._type == null);
+ if (flag)
+ {
+ this._type = (value ? new PartnerUpdateType?(this.type) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "partid", DataFormat = DataFormat.TwosComplement)]
+ public ulong partid
+ {
+ get
+ {
+ return this._partid ?? 0UL;
+ }
+ set
+ {
+ this._partid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool partidSpecified
+ {
+ get
+ {
+ return this._partid != null;
+ }
+ set
+ {
+ bool flag = value == (this._partid == null);
+ if (flag)
+ {
+ this._partid = (value ? new ulong?(this.partid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)]
+ public uint level
+ {
+ get
+ {
+ return this._level ?? 0u;
+ }
+ set
+ {
+ this._level = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool levelSpecified
+ {
+ get
+ {
+ return this._level != null;
+ }
+ set
+ {
+ bool flag = value == (this._level == null);
+ if (flag)
+ {
+ this._level = (value ? new uint?(this.level) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)]
+ public uint degree
+ {
+ get
+ {
+ return this._degree ?? 0u;
+ }
+ set
+ {
+ this._degree = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool degreeSpecified
+ {
+ get
+ {
+ return this._degree != null;
+ }
+ set
+ {
+ bool flag = value == (this._degree == null);
+ if (flag)
+ {
+ this._degree = (value ? new uint?(this.degree) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "leave_id", DataFormat = DataFormat.TwosComplement)]
+ public ulong leave_id
+ {
+ get
+ {
+ return this._leave_id ?? 0UL;
+ }
+ set
+ {
+ this._leave_id = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool leave_idSpecified
+ {
+ get
+ {
+ return this._leave_id != null;
+ }
+ set
+ {
+ bool flag = value == (this._leave_id == null);
+ if (flag)
+ {
+ this._leave_id = (value ? new ulong?(this.leave_id) : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "leave_name", DataFormat = DataFormat.Default)]
+ public string leave_name
+ {
+ get
+ {
+ return this._leave_name ?? "";
+ }
+ set
+ {
+ this._leave_name = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool leave_nameSpecified
+ {
+ get
+ {
+ return this._leave_name != null;
+ }
+ set
+ {
+ bool flag = value == (this._leave_name == null);
+ if (flag)
+ {
+ this._leave_name = (value ? this.leave_name : null);
+ }
+ }
+ }
+
+ private PartnerUpdateType? _type;
+
+ private ulong? _partid;
+
+ private uint? _level;
+
+ private uint? _degree;
+
+ private ulong? _leave_id;
+
+ private string _leave_name;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializetype()
+ {
+ return this.typeSpecified;
+ }
+
+ private void Resettype()
+ {
+ this.typeSpecified = false;
+ }
+
+ private bool ShouldSerializepartid()
+ {
+ return this.partidSpecified;
+ }
+
+ private void Resetpartid()
+ {
+ this.partidSpecified = false;
+ }
+
+ private bool ShouldSerializelevel()
+ {
+ return this.levelSpecified;
+ }
+
+ private void Resetlevel()
+ {
+ this.levelSpecified = false;
+ }
+
+ private bool ShouldSerializedegree()
+ {
+ return this.degreeSpecified;
+ }
+
+ private void Resetdegree()
+ {
+ this.degreeSpecified = false;
+ }
+
+ private bool ShouldSerializeleave_id()
+ {
+ return this.leave_idSpecified;
+ }
+
+ private void Resetleave_id()
+ {
+ this.leave_idSpecified = false;
+ }
+
+ private bool ShouldSerializeleave_name()
+ {
+ return this.leave_nameSpecified;
+ }
+
+ private void Resetleave_name()
+ {
+ this.leave_nameSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}