diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs new file mode 100644 index 00000000..5df333d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs @@ -0,0 +1,78 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "CustomBattleOpRes")]
+ [Serializable]
+ public class CustomBattleOpRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode errorcode
+ {
+ get
+ {
+ return this._errorcode ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._errorcode = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errorcodeSpecified
+ {
+ get
+ {
+ return this._errorcode != null;
+ }
+ set
+ {
+ bool flag = value == (this._errorcode == null);
+ if (flag)
+ {
+ this._errorcode = (value ? new ErrorCode?(this.errorcode) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public CustomBattleClientInfo info
+ {
+ get
+ {
+ return this._info;
+ }
+ set
+ {
+ this._info = value;
+ }
+ }
+
+ private ErrorCode? _errorcode;
+
+ private CustomBattleClientInfo _info = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrorcode()
+ {
+ return this.errorcodeSpecified;
+ }
+
+ private void Reseterrorcode()
+ {
+ this.errorcodeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|