summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs293
1 files changed, 293 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs
new file mode 100644
index 00000000..84b2e1a4
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs
@@ -0,0 +1,293 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "CustomBattleOpArg")]
+ [Serializable]
+ public class CustomBattleOpArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)]
+ public CustomBattleOp op
+ {
+ get
+ {
+ return this._op ?? CustomBattleOp.CustomBattle_Query;
+ }
+ set
+ {
+ this._op = new CustomBattleOp?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool opSpecified
+ {
+ get
+ {
+ return this._op != null;
+ }
+ set
+ {
+ bool flag = value == (this._op == null);
+ if (flag)
+ {
+ this._op = (value ? new CustomBattleOp?(this.op) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)]
+ public ulong uid
+ {
+ get
+ {
+ return this._uid ?? 0UL;
+ }
+ set
+ {
+ this._uid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool uidSpecified
+ {
+ get
+ {
+ return this._uid != null;
+ }
+ set
+ {
+ bool flag = value == (this._uid == null);
+ if (flag)
+ {
+ this._uid = (value ? new ulong?(this.uid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "config", DataFormat = DataFormat.Default)]
+ [DefaultValue(null)]
+ public CustomBattleConfig config
+ {
+ get
+ {
+ return this._config;
+ }
+ set
+ {
+ this._config = value;
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)]
+ public string password
+ {
+ get
+ {
+ return this._password ?? "";
+ }
+ set
+ {
+ this._password = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool passwordSpecified
+ {
+ get
+ {
+ return this._password != null;
+ }
+ set
+ {
+ bool flag = value == (this._password == null);
+ if (flag)
+ {
+ this._password = (value ? this.password : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)]
+ public string token
+ {
+ get
+ {
+ return this._token ?? "";
+ }
+ set
+ {
+ this._token = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool tokenSpecified
+ {
+ get
+ {
+ return this._token != null;
+ }
+ set
+ {
+ bool flag = value == (this._token == null);
+ if (flag)
+ {
+ this._token = (value ? this.token : null);
+ }
+ }
+ }
+
+ [ProtoMember(6, IsRequired = false, Name = "querycross", DataFormat = DataFormat.Default)]
+ public bool querycross
+ {
+ get
+ {
+ return this._querycross ?? false;
+ }
+ set
+ {
+ this._querycross = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool querycrossSpecified
+ {
+ get
+ {
+ return this._querycross != null;
+ }
+ set
+ {
+ bool flag = value == (this._querycross == null);
+ if (flag)
+ {
+ this._querycross = (value ? new bool?(this.querycross) : null);
+ }
+ }
+ }
+
+ [ProtoMember(7, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)]
+ public string name
+ {
+ get
+ {
+ return this._name ?? "";
+ }
+ set
+ {
+ this._name = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool nameSpecified
+ {
+ get
+ {
+ return this._name != null;
+ }
+ set
+ {
+ bool flag = value == (this._name == null);
+ if (flag)
+ {
+ this._name = (value ? this.name : null);
+ }
+ }
+ }
+
+ private CustomBattleOp? _op;
+
+ private ulong? _uid;
+
+ private CustomBattleConfig _config = null;
+
+ private string _password;
+
+ private string _token;
+
+ private bool? _querycross;
+
+ private string _name;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeop()
+ {
+ return this.opSpecified;
+ }
+
+ private void Resetop()
+ {
+ this.opSpecified = false;
+ }
+
+ private bool ShouldSerializeuid()
+ {
+ return this.uidSpecified;
+ }
+
+ private void Resetuid()
+ {
+ this.uidSpecified = false;
+ }
+
+ private bool ShouldSerializepassword()
+ {
+ return this.passwordSpecified;
+ }
+
+ private void Resetpassword()
+ {
+ this.passwordSpecified = false;
+ }
+
+ private bool ShouldSerializetoken()
+ {
+ return this.tokenSpecified;
+ }
+
+ private void Resettoken()
+ {
+ this.tokenSpecified = false;
+ }
+
+ private bool ShouldSerializequerycross()
+ {
+ return this.querycrossSpecified;
+ }
+
+ private void Resetquerycross()
+ {
+ this.querycrossSpecified = false;
+ }
+
+ private bool ShouldSerializename()
+ {
+ return this.nameSpecified;
+ }
+
+ private void Resetname()
+ {
+ this.nameSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}