diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs | 257 |
1 files changed, 257 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs new file mode 100644 index 00000000..da6c60f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs @@ -0,0 +1,257 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PvpOneRec")]
+ [Serializable]
+ public class PvpOneRec : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "wincount", DataFormat = DataFormat.TwosComplement)]
+ public int wincount
+ {
+ get
+ {
+ return this._wincount ?? 0;
+ }
+ set
+ {
+ this._wincount = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool wincountSpecified
+ {
+ get
+ {
+ return this._wincount != null;
+ }
+ set
+ {
+ bool flag = value == (this._wincount == null);
+ if (flag)
+ {
+ this._wincount = (value ? new int?(this.wincount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "losecount", DataFormat = DataFormat.TwosComplement)]
+ public int losecount
+ {
+ get
+ {
+ return this._losecount ?? 0;
+ }
+ set
+ {
+ this._losecount = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool losecountSpecified
+ {
+ get
+ {
+ return this._losecount != null;
+ }
+ set
+ {
+ bool flag = value == (this._losecount == null);
+ if (flag)
+ {
+ this._losecount = (value ? new int?(this.losecount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "drawcount", DataFormat = DataFormat.TwosComplement)]
+ public int drawcount
+ {
+ get
+ {
+ return this._drawcount ?? 0;
+ }
+ set
+ {
+ this._drawcount = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool drawcountSpecified
+ {
+ get
+ {
+ return this._drawcount != null;
+ }
+ set
+ {
+ bool flag = value == (this._drawcount == null);
+ if (flag)
+ {
+ this._drawcount = (value ? new int?(this.drawcount) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "mvpID", DataFormat = DataFormat.TwosComplement)]
+ public ulong mvpID
+ {
+ get
+ {
+ return this._mvpID ?? 0UL;
+ }
+ set
+ {
+ this._mvpID = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool mvpIDSpecified
+ {
+ get
+ {
+ return this._mvpID != null;
+ }
+ set
+ {
+ bool flag = value == (this._mvpID == null);
+ if (flag)
+ {
+ this._mvpID = (value ? new ulong?(this.mvpID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, Name = "myside", DataFormat = DataFormat.Default)]
+ public List<PvpRoleBrief> myside
+ {
+ get
+ {
+ return this._myside;
+ }
+ }
+
+ [ProtoMember(6, Name = "opside", DataFormat = DataFormat.Default)]
+ public List<PvpRoleBrief> opside
+ {
+ get
+ {
+ return this._opside;
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "military", DataFormat = DataFormat.TwosComplement)]
+ public uint military
+ {
+ get
+ {
+ return this._military ?? 0u;
+ }
+ set
+ {
+ this._military = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool militarySpecified
+ {
+ get
+ {
+ return this._military != null;
+ }
+ set
+ {
+ bool flag = value == (this._military == null);
+ if (flag)
+ {
+ this._military = (value ? new uint?(this.military) : null);
+ }
+ }
+ }
+
+ private int? _wincount;
+
+ private int? _losecount;
+
+ private int? _drawcount;
+
+ private ulong? _mvpID;
+
+ private readonly List<PvpRoleBrief> _myside = new List<PvpRoleBrief>();
+
+ private readonly List<PvpRoleBrief> _opside = new List<PvpRoleBrief>();
+
+ private uint? _military;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializewincount()
+ {
+ return this.wincountSpecified;
+ }
+
+ private void Resetwincount()
+ {
+ this.wincountSpecified = false;
+ }
+
+ private bool ShouldSerializelosecount()
+ {
+ return this.losecountSpecified;
+ }
+
+ private void Resetlosecount()
+ {
+ this.losecountSpecified = false;
+ }
+
+ private bool ShouldSerializedrawcount()
+ {
+ return this.drawcountSpecified;
+ }
+
+ private void Resetdrawcount()
+ {
+ this.drawcountSpecified = false;
+ }
+
+ private bool ShouldSerializemvpID()
+ {
+ return this.mvpIDSpecified;
+ }
+
+ private void ResetmvpID()
+ {
+ this.mvpIDSpecified = false;
+ }
+
+ private bool ShouldSerializemilitary()
+ {
+ return this.militarySpecified;
+ }
+
+ private void Resetmilitary()
+ {
+ this.militarySpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|