From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/GuildHallUpdatePoint.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs new file mode 100644 index 00000000..686f9a14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallUpdatePoint")] + [Serializable] + public class GuildHallUpdatePoint : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "schoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint schoolpoint + { + get + { + return this._schoolpoint ?? 0u; + } + set + { + this._schoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool schoolpointSpecified + { + get + { + return this._schoolpoint != null; + } + set + { + bool flag = value == (this._schoolpoint == null); + if (flag) + { + this._schoolpoint = (value ? new uint?(this.schoolpoint) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hallpoint", DataFormat = DataFormat.TwosComplement)] + public uint hallpoint + { + get + { + return this._hallpoint ?? 0u; + } + set + { + this._hallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hallpointSpecified + { + get + { + return this._hallpoint != null; + } + set + { + bool flag = value == (this._hallpoint == null); + if (flag) + { + this._hallpoint = (value ? new uint?(this.hallpoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "deltaschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint deltaschoolpoint + { + get + { + return this._deltaschoolpoint ?? 0u; + } + set + { + this._deltaschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deltaschoolpointSpecified + { + get + { + return this._deltaschoolpoint != null; + } + set + { + bool flag = value == (this._deltaschoolpoint == null); + if (flag) + { + this._deltaschoolpoint = (value ? new uint?(this.deltaschoolpoint) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "deltahallpoint", DataFormat = DataFormat.TwosComplement)] + public uint deltahallpoint + { + get + { + return this._deltahallpoint ?? 0u; + } + set + { + this._deltahallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deltahallpointSpecified + { + get + { + return this._deltahallpoint != null; + } + set + { + bool flag = value == (this._deltahallpoint == null); + if (flag) + { + this._deltahallpoint = (value ? new uint?(this.deltahallpoint) : null); + } + } + } + + private uint? _schoolpoint; + + private uint? _hallpoint; + + private ulong? _roleid; + + private uint? _deltaschoolpoint; + + private uint? _deltahallpoint; + + private IExtension extensionObject; + + private bool ShouldSerializeschoolpoint() + { + return this.schoolpointSpecified; + } + + private void Resetschoolpoint() + { + this.schoolpointSpecified = false; + } + + private bool ShouldSerializehallpoint() + { + return this.hallpointSpecified; + } + + private void Resethallpoint() + { + this.hallpointSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializedeltaschoolpoint() + { + return this.deltaschoolpointSpecified; + } + + private void Resetdeltaschoolpoint() + { + this.deltaschoolpointSpecified = false; + } + + private bool ShouldSerializedeltahallpoint() + { + return this.deltahallpointSpecified; + } + + private void Resetdeltahallpoint() + { + this.deltahallpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0