diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs new file mode 100644 index 00000000..552f5842 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs @@ -0,0 +1,164 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PlayDiceOverRes")]
+ [Serializable]
+ public class PlayDiceOverRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode error
+ {
+ get
+ {
+ return this._error ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._error = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errorSpecified
+ {
+ get
+ {
+ return this._error != null;
+ }
+ set
+ {
+ bool flag = value == (this._error == null);
+ if (flag)
+ {
+ this._error = (value ? new ErrorCode?(this.error) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)]
+ public int mapID
+ {
+ get
+ {
+ return this._mapID ?? 0;
+ }
+ set
+ {
+ this._mapID = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool mapIDSpecified
+ {
+ get
+ {
+ return this._mapID != null;
+ }
+ set
+ {
+ bool flag = value == (this._mapID == null);
+ if (flag)
+ {
+ this._mapID = (value ? new int?(this.mapID) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "addBoxInfo", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public RiskBoxInfo addBoxInfo
+ {
+ get
+ {
+ return this._addBoxInfo;
+ }
+ set
+ {
+ this._addBoxInfo = value;
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "hasTriggerBuy", DataFormat = DataFormat.Default)]
+ public bool hasTriggerBuy
+ {
+ get
+ {
+ return this._hasTriggerBuy ?? false;
+ }
+ set
+ {
+ this._hasTriggerBuy = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool hasTriggerBuySpecified
+ {
+ get
+ {
+ return this._hasTriggerBuy != null;
+ }
+ set
+ {
+ bool flag = value == (this._hasTriggerBuy == null);
+ if (flag)
+ {
+ this._hasTriggerBuy = (value ? new bool?(this.hasTriggerBuy) : null);
+ }
+ }
+ }
+
+ private ErrorCode? _error;
+
+ private int? _mapID;
+
+ private RiskBoxInfo _addBoxInfo = null;
+
+ private bool? _hasTriggerBuy;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerror()
+ {
+ return this.errorSpecified;
+ }
+
+ private void Reseterror()
+ {
+ this.errorSpecified = false;
+ }
+
+ private bool ShouldSerializemapID()
+ {
+ return this.mapIDSpecified;
+ }
+
+ private void ResetmapID()
+ {
+ this.mapIDSpecified = false;
+ }
+
+ private bool ShouldSerializehasTriggerBuy()
+ {
+ return this.hasTriggerBuySpecified;
+ }
+
+ private void ResethasTriggerBuy()
+ {
+ this.hasTriggerBuySpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|