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/SkillReplyDataUnit.cs | 246 +++++++++++++++++++++ 1 file changed, 246 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs new file mode 100644 index 00000000..0919b318 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillReplyDataUnit")] + [Serializable] + public class SkillReplyDataUnit : 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 = "PIndex", DataFormat = DataFormat.TwosComplement)] + public uint PIndex + { + get + { + return this._PIndex ?? 0u; + } + set + { + this._PIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PIndexSpecified + { + get + { + return this._PIndex != null; + } + set + { + bool flag = value == (this._PIndex == null); + if (flag) + { + this._PIndex = (value ? new uint?(this.PIndex) : null); + } + } + } + + [ProtoMember(3, Name = "TargetList", DataFormat = DataFormat.Default)] + public List TargetList + { + get + { + return this._TargetList; + } + } + + [ProtoMember(4, IsRequired = false, Name = "FirerID", DataFormat = DataFormat.TwosComplement)] + public ulong FirerID + { + get + { + return this._FirerID ?? 0UL; + } + set + { + this._FirerID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FirerIDSpecified + { + get + { + return this._FirerID != null; + } + set + { + bool flag = value == (this._FirerID == null); + if (flag) + { + this._FirerID = (value ? new ulong?(this.FirerID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "BulletID", DataFormat = DataFormat.TwosComplement)] + public ulong BulletID + { + get + { + return this._BulletID ?? 0UL; + } + set + { + this._BulletID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletIDSpecified + { + get + { + return this._BulletID != null; + } + set + { + bool flag = value == (this._BulletID == null); + if (flag) + { + this._BulletID = (value ? new ulong?(this.BulletID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "BulletExtraID", DataFormat = DataFormat.TwosComplement)] + public ulong BulletExtraID + { + get + { + return this._BulletExtraID ?? 0UL; + } + set + { + this._BulletExtraID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletExtraIDSpecified + { + get + { + return this._BulletExtraID != null; + } + set + { + bool flag = value == (this._BulletExtraID == null); + if (flag) + { + this._BulletExtraID = (value ? new ulong?(this.BulletExtraID) : null); + } + } + } + + private uint? _SkillID; + + private uint? _PIndex; + + private readonly List _TargetList = new List(); + + private ulong? _FirerID; + + private ulong? _BulletID; + + private ulong? _BulletExtraID; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializePIndex() + { + return this.PIndexSpecified; + } + + private void ResetPIndex() + { + this.PIndexSpecified = false; + } + + private bool ShouldSerializeFirerID() + { + return this.FirerIDSpecified; + } + + private void ResetFirerID() + { + this.FirerIDSpecified = false; + } + + private bool ShouldSerializeBulletID() + { + return this.BulletIDSpecified; + } + + private void ResetBulletID() + { + this.BulletIDSpecified = false; + } + + private bool ShouldSerializeBulletExtraID() + { + return this.BulletExtraIDSpecified; + } + + private void ResetBulletExtraID() + { + this.BulletExtraIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0