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/SkillDataUnit.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs new file mode 100644 index 00000000..a97aa611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillDataUnit")] + [Serializable] + public class SkillDataUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Target", DataFormat = DataFormat.TwosComplement)] + public ulong Target + { + get + { + return this._Target ?? 0UL; + } + set + { + this._Target = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TargetSpecified + { + get + { + return this._Target != null; + } + set + { + bool flag = value == (this._Target == null); + if (flag) + { + this._Target = (value ? new ulong?(this.Target) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ManualFace", DataFormat = DataFormat.TwosComplement)] + public int ManualFace + { + get + { + return this._ManualFace ?? 0; + } + set + { + this._ManualFace = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ManualFaceSpecified + { + get + { + return this._ManualFace != null; + } + set + { + bool flag = value == (this._ManualFace == null); + if (flag) + { + this._ManualFace = (value ? new int?(this.ManualFace) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Slot", DataFormat = DataFormat.TwosComplement)] + public int Slot + { + get + { + return this._Slot ?? 0; + } + set + { + this._Slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotSpecified + { + get + { + return this._Slot != null; + } + set + { + bool flag = value == (this._Slot == null); + if (flag) + { + this._Slot = (value ? new int?(this.Slot) : null); + } + } + } + + private uint? _SkillID; + + private ulong? _Target; + + private int? _ManualFace; + + private int? _Slot; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializeTarget() + { + return this.TargetSpecified; + } + + private void ResetTarget() + { + this.TargetSpecified = false; + } + + private bool ShouldSerializeManualFace() + { + return this.ManualFaceSpecified; + } + + private void ResetManualFace() + { + this.ManualFaceSpecified = false; + } + + private bool ShouldSerializeSlot() + { + return this.SlotSpecified; + } + + private void ResetSlot() + { + this.SlotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0