diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs | 277 |
1 files changed, 277 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs new file mode 100644 index 00000000..5f6b5f61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs @@ -0,0 +1,277 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "HeroBattleTeamMember")]
+ [Serializable]
+ public class HeroBattleTeamMember : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)]
+ public ulong uid
+ {
+ get
+ {
+ return this._uid ?? 0UL;
+ }
+ set
+ {
+ this._uid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool uidSpecified
+ {
+ get
+ {
+ return this._uid != null;
+ }
+ set
+ {
+ bool flag = value == (this._uid == null);
+ if (flag)
+ {
+ this._uid = (value ? new ulong?(this.uid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)]
+ public uint heroid
+ {
+ get
+ {
+ return this._heroid ?? 0u;
+ }
+ set
+ {
+ this._heroid = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool heroidSpecified
+ {
+ get
+ {
+ return this._heroid != null;
+ }
+ set
+ {
+ bool flag = value == (this._heroid == null);
+ if (flag)
+ {
+ this._heroid = (value ? new uint?(this.heroid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)]
+ public string name
+ {
+ get
+ {
+ return this._name ?? "";
+ }
+ set
+ {
+ this._name = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool nameSpecified
+ {
+ get
+ {
+ return this._name != null;
+ }
+ set
+ {
+ bool flag = value == (this._name == null);
+ if (flag)
+ {
+ this._name = (value ? this.name : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "killnum", DataFormat = DataFormat.TwosComplement)]
+ public uint killnum
+ {
+ get
+ {
+ return this._killnum ?? 0u;
+ }
+ set
+ {
+ this._killnum = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool killnumSpecified
+ {
+ get
+ {
+ return this._killnum != null;
+ }
+ set
+ {
+ bool flag = value == (this._killnum == null);
+ if (flag)
+ {
+ this._killnum = (value ? new uint?(this.killnum) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "deathnum", DataFormat = DataFormat.TwosComplement)]
+ public uint deathnum
+ {
+ get
+ {
+ return this._deathnum ?? 0u;
+ }
+ set
+ {
+ this._deathnum = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool deathnumSpecified
+ {
+ get
+ {
+ return this._deathnum != null;
+ }
+ set
+ {
+ bool flag = value == (this._deathnum == null);
+ if (flag)
+ {
+ this._deathnum = (value ? new uint?(this.deathnum) : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "assitnum", DataFormat = DataFormat.TwosComplement)]
+ public uint assitnum
+ {
+ get
+ {
+ return this._assitnum ?? 0u;
+ }
+ set
+ {
+ this._assitnum = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool assitnumSpecified
+ {
+ get
+ {
+ return this._assitnum != null;
+ }
+ set
+ {
+ bool flag = value == (this._assitnum == null);
+ if (flag)
+ {
+ this._assitnum = (value ? new uint?(this.assitnum) : null);
+ }
+ }
+ }
+
+ private ulong? _uid;
+
+ private uint? _heroid;
+
+ private string _name;
+
+ private uint? _killnum;
+
+ private uint? _deathnum;
+
+ private uint? _assitnum;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeuid()
+ {
+ return this.uidSpecified;
+ }
+
+ private void Resetuid()
+ {
+ this.uidSpecified = false;
+ }
+
+ private bool ShouldSerializeheroid()
+ {
+ return this.heroidSpecified;
+ }
+
+ private void Resetheroid()
+ {
+ this.heroidSpecified = false;
+ }
+
+ private bool ShouldSerializename()
+ {
+ return this.nameSpecified;
+ }
+
+ private void Resetname()
+ {
+ this.nameSpecified = false;
+ }
+
+ private bool ShouldSerializekillnum()
+ {
+ return this.killnumSpecified;
+ }
+
+ private void Resetkillnum()
+ {
+ this.killnumSpecified = false;
+ }
+
+ private bool ShouldSerializedeathnum()
+ {
+ return this.deathnumSpecified;
+ }
+
+ private void Resetdeathnum()
+ {
+ this.deathnumSpecified = false;
+ }
+
+ private bool ShouldSerializeassitnum()
+ {
+ return this.assitnumSpecified;
+ }
+
+ private void Resetassitnum()
+ {
+ this.assitnumSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|