From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/DragonGuildSettingChanged.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs new file mode 100644 index 00000000..581bbbf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildSettingChanged")] + [Serializable] + public class DragonGuildSettingChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "recuitPPT", DataFormat = DataFormat.TwosComplement)] + public uint recuitPPT + { + get + { + return this._recuitPPT ?? 0u; + } + set + { + this._recuitPPT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recuitPPTSpecified + { + get + { + return this._recuitPPT != null; + } + set + { + bool flag = value == (this._recuitPPT == null); + if (flag) + { + this._recuitPPT = (value ? new uint?(this.recuitPPT) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "needApproval", DataFormat = DataFormat.TwosComplement)] + public uint needApproval + { + get + { + return this._needApproval ?? 0u; + } + set + { + this._needApproval = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needApprovalSpecified + { + get + { + return this._needApproval != null; + } + set + { + bool flag = value == (this._needApproval == null); + if (flag) + { + this._needApproval = (value ? new uint?(this.needApproval) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + private uint? _recuitPPT; + + private uint? _needApproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializerecuitPPT() + { + return this.recuitPPTSpecified; + } + + private void ResetrecuitPPT() + { + this.recuitPPTSpecified = false; + } + + private bool ShouldSerializeneedApproval() + { + return this.needApprovalSpecified; + } + + private void ResetneedApproval() + { + this.needApprovalSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0