From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs new file mode 100644 index 00000000..47ff17e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinDragonGuildRes")] + [Serializable] + public class CreateOrJoinDragonGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : 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 = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cdtime", DataFormat = DataFormat.TwosComplement)] + public uint cdtime + { + get + { + return this._cdtime ?? 0u; + } + set + { + this._cdtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdtimeSpecified + { + get + { + return this._cdtime != null; + } + set + { + bool flag = value == (this._cdtime == null); + if (flag) + { + this._cdtime = (value ? new uint?(this.cdtime) : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _dgid; + + private string _name; + + private uint? _cdtime; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedgid() + { + return this.dgidSpecified; + } + + private void Resetdgid() + { + this.dgidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializecdtime() + { + return this.cdtimeSpecified; + } + + private void Resetcdtime() + { + this.cdtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0