From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs new file mode 100644 index 00000000..d13f6c00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinDragonGuildArg")] + [Serializable] + public class CreateOrJoinDragonGuildArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iscreate", DataFormat = DataFormat.Default)] + public bool iscreate + { + get + { + return this._iscreate ?? false; + } + set + { + this._iscreate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscreateSpecified + { + get + { + return this._iscreate != null; + } + set + { + bool flag = value == (this._iscreate == null); + if (flag) + { + this._iscreate = (value ? new bool?(this.iscreate) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dgid", DataFormat = DataFormat.TwosComplement)] + public ulong dgid + { + get + { + return this._dgid ?? 0UL; + } + set + { + this._dgid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgidSpecified + { + get + { + return this._dgid != null; + } + set + { + bool flag = value == (this._dgid == null); + if (flag) + { + this._dgid = (value ? new ulong?(this.dgid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dgname", DataFormat = DataFormat.Default)] + public string dgname + { + get + { + return this._dgname ?? ""; + } + set + { + this._dgname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgnameSpecified + { + get + { + return this._dgname != null; + } + set + { + bool flag = value == (this._dgname == null); + if (flag) + { + this._dgname = (value ? this.dgname : null); + } + } + } + + private bool? _iscreate; + + private ulong? _dgid; + + private string _dgname; + + private IExtension extensionObject; + + private bool ShouldSerializeiscreate() + { + return this.iscreateSpecified; + } + + private void Resetiscreate() + { + this.iscreateSpecified = false; + } + + private bool ShouldSerializedgid() + { + return this.dgidSpecified; + } + + private void Resetdgid() + { + this.dgidSpecified = false; + } + + private bool ShouldSerializedgname() + { + return this.dgnameSpecified; + } + + private void Resetdgname() + { + this.dgnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0