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/NpcFeelingOneNpc.cs | 214 +++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs new file mode 100644 index 00000000..8956de2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFeelingOneNpc")] + [Serializable] + public class NpcFeelingOneNpc : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "npcid", DataFormat = DataFormat.TwosComplement)] + public uint npcid + { + get + { + return this._npcid ?? 0u; + } + set + { + this._npcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npcidSpecified + { + get + { + return this._npcid != null; + } + set + { + bool flag = value == (this._npcid == null); + if (flag) + { + this._npcid = (value ? new uint?(this.npcid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(4, Name = "likeitem", DataFormat = DataFormat.Default)] + public List likeitem + { + get + { + return this._likeitem; + } + } + + [ProtoMember(5, Name = "exchange", DataFormat = DataFormat.Default)] + public List exchange + { + get + { + return this._exchange; + } + } + + [ProtoMember(6, IsRequired = false, Name = "isnew", DataFormat = DataFormat.Default)] + public bool isnew + { + get + { + return this._isnew ?? false; + } + set + { + this._isnew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewSpecified + { + get + { + return this._isnew != null; + } + set + { + bool flag = value == (this._isnew == null); + if (flag) + { + this._isnew = (value ? new bool?(this.isnew) : null); + } + } + } + + private uint? _npcid; + + private uint? _level; + + private uint? _exp; + + private readonly List _likeitem = new List(); + + private readonly List _exchange = new List(); + + private bool? _isnew; + + private IExtension extensionObject; + + private bool ShouldSerializenpcid() + { + return this.npcidSpecified; + } + + private void Resetnpcid() + { + this.npcidSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializeisnew() + { + return this.isnewSpecified; + } + + private void Resetisnew() + { + this.isnewSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0