summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs
new file mode 100644
index 00000000..e8ecad0a
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GMCmdArg")]
+ [Serializable]
+ public class GMCmdArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "cmd", DataFormat = DataFormat.Default)]
+ public string cmd
+ {
+ get
+ {
+ return this._cmd ?? "";
+ }
+ set
+ {
+ this._cmd = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool cmdSpecified
+ {
+ get
+ {
+ return this._cmd != null;
+ }
+ set
+ {
+ bool flag = value == (this._cmd == null);
+ if (flag)
+ {
+ this._cmd = (value ? this.cmd : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "args", DataFormat = DataFormat.Default)]
+ public List<string> args
+ {
+ get
+ {
+ return this._args;
+ }
+ }
+
+ private string _cmd;
+
+ private readonly List<string> _args = new List<string>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializecmd()
+ {
+ return this.cmdSpecified;
+ }
+
+ private void Resetcmd()
+ {
+ this.cmdSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}