summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs105
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs
new file mode 100644
index 00000000..20bfb68f
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs
@@ -0,0 +1,105 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "RiskRecoverDiceData")]
+ [Serializable]
+ public class RiskRecoverDiceData : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "diceNum", DataFormat = DataFormat.TwosComplement)]
+ public int diceNum
+ {
+ get
+ {
+ return this._diceNum ?? 0;
+ }
+ set
+ {
+ this._diceNum = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool diceNumSpecified
+ {
+ get
+ {
+ return this._diceNum != null;
+ }
+ set
+ {
+ bool flag = value == (this._diceNum == null);
+ if (flag)
+ {
+ this._diceNum = (value ? new int?(this.diceNum) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "leftDiceTime", DataFormat = DataFormat.TwosComplement)]
+ public int leftDiceTime
+ {
+ get
+ {
+ return this._leftDiceTime ?? 0;
+ }
+ set
+ {
+ this._leftDiceTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool leftDiceTimeSpecified
+ {
+ get
+ {
+ return this._leftDiceTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._leftDiceTime == null);
+ if (flag)
+ {
+ this._leftDiceTime = (value ? new int?(this.leftDiceTime) : null);
+ }
+ }
+ }
+
+ private int? _diceNum;
+
+ private int? _leftDiceTime;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializediceNum()
+ {
+ return this.diceNumSpecified;
+ }
+
+ private void ResetdiceNum()
+ {
+ this.diceNumSpecified = false;
+ }
+
+ private bool ShouldSerializeleftDiceTime()
+ {
+ return this.leftDiceTimeSpecified;
+ }
+
+ private void ResetleftDiceTime()
+ {
+ this.leftDiceTimeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}