diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs new file mode 100644 index 00000000..cad373ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs @@ -0,0 +1,105 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "DHRArg")]
+ [Serializable]
+ public class DHRArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)]
+ public DHRReqOp op
+ {
+ get
+ {
+ return this._op ?? DHRReqOp.DHR_OP_LIST;
+ }
+ set
+ {
+ this._op = new DHRReqOp?(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 DHRReqOp?(this.op) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)]
+ public int id
+ {
+ get
+ {
+ return this._id ?? 0;
+ }
+ set
+ {
+ this._id = new int?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool idSpecified
+ {
+ get
+ {
+ return this._id != null;
+ }
+ set
+ {
+ bool flag = value == (this._id == null);
+ if (flag)
+ {
+ this._id = (value ? new int?(this.id) : null);
+ }
+ }
+ }
+
+ private DHRReqOp? _op;
+
+ private int? _id;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeop()
+ {
+ return this.opSpecified;
+ }
+
+ private void Resetop()
+ {
+ this.opSpecified = false;
+ }
+
+ private bool ShouldSerializeid()
+ {
+ return this.idSpecified;
+ }
+
+ private void Resetid()
+ {
+ this.idSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|