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/GetEnhanceAttrArg.cs | 148 +++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs new file mode 100644 index 00000000..4ad1cab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetEnhanceAttrArg")] + [Serializable] + public class GetEnhanceAttrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "prof", DataFormat = DataFormat.TwosComplement)] + public uint prof + { + get + { + return this._prof ?? 0u; + } + set + { + this._prof = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profSpecified + { + get + { + return this._prof != null; + } + set + { + bool flag = value == (this._prof == null); + if (flag) + { + this._prof = (value ? new uint?(this.prof) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "equippos", DataFormat = DataFormat.TwosComplement)] + public uint equippos + { + get + { + return this._equippos ?? 0u; + } + set + { + this._equippos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool equipposSpecified + { + get + { + return this._equippos != null; + } + set + { + bool flag = value == (this._equippos == null); + if (flag) + { + this._equippos = (value ? new uint?(this.equippos) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "enhancelevel", DataFormat = DataFormat.TwosComplement)] + public uint enhancelevel + { + get + { + return this._enhancelevel ?? 0u; + } + set + { + this._enhancelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhancelevelSpecified + { + get + { + return this._enhancelevel != null; + } + set + { + bool flag = value == (this._enhancelevel == null); + if (flag) + { + this._enhancelevel = (value ? new uint?(this.enhancelevel) : null); + } + } + } + + private uint? _prof; + + private uint? _equippos; + + private uint? _enhancelevel; + + private IExtension extensionObject; + + private bool ShouldSerializeprof() + { + return this.profSpecified; + } + + private void Resetprof() + { + this.profSpecified = false; + } + + private bool ShouldSerializeequippos() + { + return this.equipposSpecified; + } + + private void Resetequippos() + { + this.equipposSpecified = false; + } + + private bool ShouldSerializeenhancelevel() + { + return this.enhancelevelSpecified; + } + + private void Resetenhancelevel() + { + this.enhancelevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0