summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs191
1 files changed, 191 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs
new file mode 100644
index 00000000..294eb30a
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs
@@ -0,0 +1,191 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "SelectRoleNewRes")]
+ [Serializable]
+ public class SelectRoleNewRes : 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 = "banTime", DataFormat = DataFormat.TwosComplement)]
+ public int banTime
+ {
+ get
+ {
+ return this._banTime ?? 0;
+ }
+ set
+ {
+ this._banTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool banTimeSpecified
+ {
+ get
+ {
+ return this._banTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._banTime == null);
+ if (flag)
+ {
+ this._banTime = (value ? new int?(this.banTime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "endTime", DataFormat = DataFormat.TwosComplement)]
+ public int endTime
+ {
+ get
+ {
+ return this._endTime ?? 0;
+ }
+ set
+ {
+ this._endTime = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool endTimeSpecified
+ {
+ get
+ {
+ return this._endTime != null;
+ }
+ set
+ {
+ bool flag = value == (this._endTime == null);
+ if (flag)
+ {
+ this._endTime = (value ? new int?(this.endTime) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "reason", DataFormat = DataFormat.Default)]
+ public string reason
+ {
+ get
+ {
+ return this._reason ?? "";
+ }
+ set
+ {
+ this._reason = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool reasonSpecified
+ {
+ get
+ {
+ return this._reason != null;
+ }
+ set
+ {
+ bool flag = value == (this._reason == null);
+ if (flag)
+ {
+ this._reason = (value ? this.reason : null);
+ }
+ }
+ }
+
+ private ErrorCode? _result;
+
+ private int? _banTime;
+
+ private int? _endTime;
+
+ private string _reason;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeresult()
+ {
+ return this.resultSpecified;
+ }
+
+ private void Resetresult()
+ {
+ this.resultSpecified = false;
+ }
+
+ private bool ShouldSerializebanTime()
+ {
+ return this.banTimeSpecified;
+ }
+
+ private void ResetbanTime()
+ {
+ this.banTimeSpecified = false;
+ }
+
+ private bool ShouldSerializeendTime()
+ {
+ return this.endTimeSpecified;
+ }
+
+ private void ResetendTime()
+ {
+ this.endTimeSpecified = false;
+ }
+
+ private bool ShouldSerializereason()
+ {
+ return this.reasonSpecified;
+ }
+
+ private void Resetreason()
+ {
+ this.reasonSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}