From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/SkillInfo.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs new file mode 100644 index 00000000..4b73126a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillInfo")] + [Serializable] + public class SkillInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillHash", DataFormat = DataFormat.TwosComplement)] + public uint skillHash + { + get + { + return this._skillHash ?? 0u; + } + set + { + this._skillHash = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillHashSpecified + { + get + { + return this._skillHash != null; + } + set + { + bool flag = value == (this._skillHash == null); + if (flag) + { + this._skillHash = (value ? new uint?(this.skillHash) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillLevel", DataFormat = DataFormat.TwosComplement)] + public uint skillLevel + { + get + { + return this._skillLevel ?? 0u; + } + set + { + this._skillLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillLevelSpecified + { + get + { + return this._skillLevel != null; + } + set + { + bool flag = value == (this._skillLevel == null); + if (flag) + { + this._skillLevel = (value ? new uint?(this.skillLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "skillpoint", DataFormat = DataFormat.TwosComplement)] + public uint skillpoint + { + get + { + return this._skillpoint ?? 0u; + } + set + { + this._skillpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillpointSpecified + { + get + { + return this._skillpoint != null; + } + set + { + bool flag = value == (this._skillpoint == null); + if (flag) + { + this._skillpoint = (value ? new uint?(this.skillpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isbasic", DataFormat = DataFormat.Default)] + public bool isbasic + { + get + { + return this._isbasic ?? false; + } + set + { + this._isbasic = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbasicSpecified + { + get + { + return this._isbasic != null; + } + set + { + bool flag = value == (this._isbasic == null); + if (flag) + { + this._isbasic = (value ? new bool?(this.isbasic) : null); + } + } + } + + private uint? _skillHash; + + private uint? _skillLevel; + + private uint? _skillpoint; + + private bool? _isbasic; + + private IExtension extensionObject; + + private bool ShouldSerializeskillHash() + { + return this.skillHashSpecified; + } + + private void ResetskillHash() + { + this.skillHashSpecified = false; + } + + private bool ShouldSerializeskillLevel() + { + return this.skillLevelSpecified; + } + + private void ResetskillLevel() + { + this.skillLevelSpecified = false; + } + + private bool ShouldSerializeskillpoint() + { + return this.skillpointSpecified; + } + + private void Resetskillpoint() + { + this.skillpointSpecified = false; + } + + private bool ShouldSerializeisbasic() + { + return this.isbasicSpecified; + } + + private void Resetisbasic() + { + this.isbasicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0