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/LoginRes.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs | 196 |
1 files changed, 196 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs new file mode 100644 index 00000000..3de47c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs @@ -0,0 +1,196 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "LoginRes")]
+ [Serializable]
+ public class LoginRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode result
+ {
+ get
+ {
+ return this._result ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._result = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool resultSpecified
+ {
+ get
+ {
+ return this._result != null;
+ }
+ set
+ {
+ bool flag = value == (this._result == null);
+ if (flag)
+ {
+ this._result = (value ? new ErrorCode?(this.result) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "version", DataFormat = DataFormat.Default)]
+ public string version
+ {
+ get
+ {
+ return this._version ?? "";
+ }
+ set
+ {
+ this._version = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool versionSpecified
+ {
+ get
+ {
+ return this._version != null;
+ }
+ set
+ {
+ bool flag = value == (this._version == null);
+ if (flag)
+ {
+ this._version = (value ? this.version : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "accountData", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public LoadAccountData accountData
+ {
+ get
+ {
+ return this._accountData;
+ }
+ set
+ {
+ this._accountData = value;
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "function_open", DataFormat = DataFormat.TwosComplement)]
+ public uint function_open
+ {
+ get
+ {
+ return this._function_open ?? 0u;
+ }
+ set
+ {
+ this._function_open = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool function_openSpecified
+ {
+ get
+ {
+ return this._function_open != null;
+ }
+ set
+ {
+ bool flag = value == (this._function_open == null);
+ if (flag)
+ {
+ this._function_open = (value ? new uint?(this.function_open) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public LoginExtraData data
+ {
+ get
+ {
+ return this._data;
+ }
+ set
+ {
+ this._data = value;
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "rinfo", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public LoginReconnectInfo rinfo
+ {
+ get
+ {
+ return this._rinfo;
+ }
+ set
+ {
+ this._rinfo = value;
+ }
+ }
+
+ private ErrorCode? _result;
+
+ private string _version;
+
+ private LoadAccountData _accountData = null;
+
+ private uint? _function_open;
+
+ private LoginExtraData _data = null;
+
+ private LoginReconnectInfo _rinfo = null;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeresult()
+ {
+ return this.resultSpecified;
+ }
+
+ private void Resetresult()
+ {
+ this.resultSpecified = false;
+ }
+
+ private bool ShouldSerializeversion()
+ {
+ return this.versionSpecified;
+ }
+
+ private void Resetversion()
+ {
+ this.versionSpecified = false;
+ }
+
+ private bool ShouldSerializefunction_open()
+ {
+ return this.function_openSpecified;
+ }
+
+ private void Resetfunction_open()
+ {
+ this.function_openSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|