From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs | 105 +++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs new file mode 100644 index 00000000..23056e0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckinBoxNtf")] + [Serializable] + public class GuildCheckinBoxNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "processbar", DataFormat = DataFormat.TwosComplement)] + public uint processbar + { + get + { + return this._processbar ?? 0u; + } + set + { + this._processbar = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool processbarSpecified + { + get + { + return this._processbar != null; + } + set + { + bool flag = value == (this._processbar == null); + if (flag) + { + this._processbar = (value ? new uint?(this.processbar) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "boxmask", DataFormat = DataFormat.TwosComplement)] + public uint boxmask + { + get + { + return this._boxmask ?? 0u; + } + set + { + this._boxmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxmaskSpecified + { + get + { + return this._boxmask != null; + } + set + { + bool flag = value == (this._boxmask == null); + if (flag) + { + this._boxmask = (value ? new uint?(this.boxmask) : null); + } + } + } + + private uint? _processbar; + + private uint? _boxmask; + + private IExtension extensionObject; + + private bool ShouldSerializeprocessbar() + { + return this.processbarSpecified; + } + + private void Resetprocessbar() + { + this.processbarSpecified = false; + } + + private bool ShouldSerializeboxmask() + { + return this.boxmaskSpecified; + } + + private void Resetboxmask() + { + this.boxmaskSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0