From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/GCFCommonArg.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs') 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); + } + } +} -- cgit v1.1-26-g67d0