diff options
author | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-01-25 14:28:30 +0800 |
commit | 6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch) | |
tree | 7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs |
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs | 148 |
1 files changed, 148 insertions, 0 deletions
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);
+ }
+ }
+}
|