summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs148
1 files changed, 148 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs
new file mode 100644
index 00000000..d85cc0f2
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs
@@ -0,0 +1,148 @@
+using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GCFCommonArg")]
+ [Serializable]
+ public class GCFCommonArg : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)]
+ public GCFReqType reqtype
+ {
+ get
+ {
+ return this._reqtype ?? GCFReqType.GCF_JOIN_READY_SCENE;
+ }
+ set
+ {
+ this._reqtype = new GCFReqType?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool reqtypeSpecified
+ {
+ get
+ {
+ return this._reqtype != null;
+ }
+ set
+ {
+ bool flag = value == (this._reqtype == null);
+ if (flag)
+ {
+ this._reqtype = (value ? new GCFReqType?(this.reqtype) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)]
+ public uint mapid
+ {
+ get
+ {
+ return this._mapid ?? 0u;
+ }
+ set
+ {
+ this._mapid = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool mapidSpecified
+ {
+ get
+ {
+ return this._mapid != null;
+ }
+ set
+ {
+ bool flag = value == (this._mapid == null);
+ if (flag)
+ {
+ this._mapid = (value ? new uint?(this.mapid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "territoryid", DataFormat = DataFormat.TwosComplement)]
+ public uint territoryid
+ {
+ get
+ {
+ return this._territoryid ?? 0u;
+ }
+ set
+ {
+ this._territoryid = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool territoryidSpecified
+ {
+ get
+ {
+ return this._territoryid != null;
+ }
+ set
+ {
+ bool flag = value == (this._territoryid == null);
+ if (flag)
+ {
+ this._territoryid = (value ? new uint?(this.territoryid) : null);
+ }
+ }
+ }
+
+ private GCFReqType? _reqtype;
+
+ private uint? _mapid;
+
+ private uint? _territoryid;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializereqtype()
+ {
+ return this.reqtypeSpecified;
+ }
+
+ private void Resetreqtype()
+ {
+ this.reqtypeSpecified = false;
+ }
+
+ private bool ShouldSerializemapid()
+ {
+ return this.mapidSpecified;
+ }
+
+ private void Resetmapid()
+ {
+ this.mapidSpecified = false;
+ }
+
+ private bool ShouldSerializeterritoryid()
+ {
+ return this.territoryidSpecified;
+ }
+
+ private void Resetterritoryid()
+ {
+ this.territoryidSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}