diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs | 320 |
1 files changed, 320 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs new file mode 100644 index 00000000..8036b4f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs @@ -0,0 +1,320 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PkBaseHist")]
+ [Serializable]
+ public class PkBaseHist : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "win", DataFormat = DataFormat.TwosComplement)]
+ public uint win
+ {
+ get
+ {
+ return this._win ?? 0u;
+ }
+ set
+ {
+ this._win = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool winSpecified
+ {
+ get
+ {
+ return this._win != null;
+ }
+ set
+ {
+ bool flag = value == (this._win == null);
+ if (flag)
+ {
+ this._win = (value ? new uint?(this.win) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "lose", DataFormat = DataFormat.TwosComplement)]
+ public uint lose
+ {
+ get
+ {
+ return this._lose ?? 0u;
+ }
+ set
+ {
+ this._lose = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool loseSpecified
+ {
+ get
+ {
+ return this._lose != null;
+ }
+ set
+ {
+ bool flag = value == (this._lose == null);
+ if (flag)
+ {
+ this._lose = (value ? new uint?(this.lose) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "draw", DataFormat = DataFormat.TwosComplement)]
+ public uint draw
+ {
+ get
+ {
+ return this._draw ?? 0u;
+ }
+ set
+ {
+ this._draw = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool drawSpecified
+ {
+ get
+ {
+ return this._draw != null;
+ }
+ set
+ {
+ bool flag = value == (this._draw == null);
+ if (flag)
+ {
+ this._draw = (value ? new uint?(this.draw) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "lastwin", DataFormat = DataFormat.TwosComplement)]
+ public uint lastwin
+ {
+ get
+ {
+ return this._lastwin ?? 0u;
+ }
+ set
+ {
+ this._lastwin = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool lastwinSpecified
+ {
+ get
+ {
+ return this._lastwin != null;
+ }
+ set
+ {
+ bool flag = value == (this._lastwin == null);
+ if (flag)
+ {
+ this._lastwin = (value ? new uint?(this.lastwin) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "lastlose", DataFormat = DataFormat.TwosComplement)]
+ public uint lastlose
+ {
+ get
+ {
+ return this._lastlose ?? 0u;
+ }
+ set
+ {
+ this._lastlose = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool lastloseSpecified
+ {
+ get
+ {
+ return this._lastlose != null;
+ }
+ set
+ {
+ bool flag = value == (this._lastlose == null);
+ if (flag)
+ {
+ this._lastlose = (value ? new uint?(this.lastlose) : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "continuewin", DataFormat = DataFormat.TwosComplement)]
+ public uint continuewin
+ {
+ get
+ {
+ return this._continuewin ?? 0u;
+ }
+ set
+ {
+ this._continuewin = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool continuewinSpecified
+ {
+ get
+ {
+ return this._continuewin != null;
+ }
+ set
+ {
+ bool flag = value == (this._continuewin == null);
+ if (flag)
+ {
+ this._continuewin = (value ? new uint?(this.continuewin) : null);
+ }
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "continuelose", DataFormat = DataFormat.TwosComplement)]
+ public uint continuelose
+ {
+ get
+ {
+ return this._continuelose ?? 0u;
+ }
+ set
+ {
+ this._continuelose = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool continueloseSpecified
+ {
+ get
+ {
+ return this._continuelose != null;
+ }
+ set
+ {
+ bool flag = value == (this._continuelose == null);
+ if (flag)
+ {
+ this._continuelose = (value ? new uint?(this.continuelose) : null);
+ }
+ }
+ }
+
+ private uint? _win;
+
+ private uint? _lose;
+
+ private uint? _draw;
+
+ private uint? _lastwin;
+
+ private uint? _lastlose;
+
+ private uint? _continuewin;
+
+ private uint? _continuelose;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializewin()
+ {
+ return this.winSpecified;
+ }
+
+ private void Resetwin()
+ {
+ this.winSpecified = false;
+ }
+
+ private bool ShouldSerializelose()
+ {
+ return this.loseSpecified;
+ }
+
+ private void Resetlose()
+ {
+ this.loseSpecified = false;
+ }
+
+ private bool ShouldSerializedraw()
+ {
+ return this.drawSpecified;
+ }
+
+ private void Resetdraw()
+ {
+ this.drawSpecified = false;
+ }
+
+ private bool ShouldSerializelastwin()
+ {
+ return this.lastwinSpecified;
+ }
+
+ private void Resetlastwin()
+ {
+ this.lastwinSpecified = false;
+ }
+
+ private bool ShouldSerializelastlose()
+ {
+ return this.lastloseSpecified;
+ }
+
+ private void Resetlastlose()
+ {
+ this.lastloseSpecified = false;
+ }
+
+ private bool ShouldSerializecontinuewin()
+ {
+ return this.continuewinSpecified;
+ }
+
+ private void Resetcontinuewin()
+ {
+ this.continuewinSpecified = false;
+ }
+
+ private bool ShouldSerializecontinuelose()
+ {
+ return this.continueloseSpecified;
+ }
+
+ private void Resetcontinuelose()
+ {
+ this.continueloseSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|