From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../KKSG/ChangeDragonGuildSettingArg.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs new file mode 100644 index 00000000..2e0f57ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDragonGuildSettingArg")] + [Serializable] + public class ChangeDragonGuildSettingArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : 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? _powerpoint; + + private uint? _needapproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = 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