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/NpcFeelingRecord.cs | 365 +++++++++++++++++++++ 1 file changed, 365 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs new file mode 100644 index 00000000..e9fa51a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs @@ -0,0 +1,365 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFeelingRecord")] + [Serializable] + public class NpcFeelingRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastupdaytime", DataFormat = DataFormat.TwosComplement)] + public uint lastupdaytime + { + get + { + return this._lastupdaytime ?? 0u; + } + set + { + this._lastupdaytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastupdaytimeSpecified + { + get + { + return this._lastupdaytime != null; + } + set + { + bool flag = value == (this._lastupdaytime == null); + if (flag) + { + this._lastupdaytime = (value ? new uint?(this.lastupdaytime) : null); + } + } + } + + [ProtoMember(2, Name = "npclist", DataFormat = DataFormat.Default)] + public List npclist + { + get + { + return this._npclist; + } + } + + [ProtoMember(3, Name = "unitelist", DataFormat = DataFormat.Default)] + public List unitelist + { + get + { + return this._unitelist; + } + } + + [ProtoMember(4, IsRequired = false, Name = "exchangecount", DataFormat = DataFormat.TwosComplement)] + public uint exchangecount + { + get + { + return this._exchangecount ?? 0u; + } + set + { + this._exchangecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool exchangecountSpecified + { + get + { + return this._exchangecount != null; + } + set + { + bool flag = value == (this._exchangecount == null); + if (flag) + { + this._exchangecount = (value ? new uint?(this.exchangecount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "returncount", DataFormat = DataFormat.TwosComplement)] + public uint returncount + { + get + { + return this._returncount ?? 0u; + } + set + { + this._returncount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool returncountSpecified + { + get + { + return this._returncount != null; + } + set + { + bool flag = value == (this._returncount == null); + if (flag) + { + this._returncount = (value ? new uint?(this.returncount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "givecount", DataFormat = DataFormat.TwosComplement)] + public uint givecount + { + get + { + return this._givecount ?? 0u; + } + set + { + this._givecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool givecountSpecified + { + get + { + return this._givecount != null; + } + set + { + bool flag = value == (this._givecount == null); + if (flag) + { + this._givecount = (value ? new uint?(this.givecount) : null); + } + } + } + + [ProtoMember(7, Name = "nouse", DataFormat = DataFormat.Default)] + public List nouse + { + get + { + return this._nouse; + } + } + + [ProtoMember(8, Name = "returndrop", DataFormat = DataFormat.Default)] + public List returndrop + { + get + { + return this._returndrop; + } + } + + [ProtoMember(9, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "triggerfavorcount", DataFormat = DataFormat.TwosComplement)] + public uint triggerfavorcount + { + get + { + return this._triggerfavorcount ?? 0u; + } + set + { + this._triggerfavorcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool triggerfavorcountSpecified + { + get + { + return this._triggerfavorcount != null; + } + set + { + bool flag = value == (this._triggerfavorcount == null); + if (flag) + { + this._triggerfavorcount = (value ? new uint?(this.triggerfavorcount) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "giveleftaddcount", DataFormat = DataFormat.TwosComplement)] + public uint giveleftaddcount + { + get + { + return this._giveleftaddcount ?? 0u; + } + set + { + this._giveleftaddcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giveleftaddcountSpecified + { + get + { + return this._giveleftaddcount != null; + } + set + { + bool flag = value == (this._giveleftaddcount == null); + if (flag) + { + this._giveleftaddcount = (value ? new uint?(this.giveleftaddcount) : null); + } + } + } + + private uint? _lastupdaytime; + + private readonly List _npclist = new List(); + + private readonly List _unitelist = new List(); + + private uint? _exchangecount; + + private uint? _returncount; + + private uint? _givecount; + + private readonly List _nouse = new List(); + + private readonly List _returndrop = new List(); + + private uint? _buycount; + + private uint? _triggerfavorcount; + + private uint? _giveleftaddcount; + + private IExtension extensionObject; + + private bool ShouldSerializelastupdaytime() + { + return this.lastupdaytimeSpecified; + } + + private void Resetlastupdaytime() + { + this.lastupdaytimeSpecified = false; + } + + private bool ShouldSerializeexchangecount() + { + return this.exchangecountSpecified; + } + + private void Resetexchangecount() + { + this.exchangecountSpecified = false; + } + + private bool ShouldSerializereturncount() + { + return this.returncountSpecified; + } + + private void Resetreturncount() + { + this.returncountSpecified = false; + } + + private bool ShouldSerializegivecount() + { + return this.givecountSpecified; + } + + private void Resetgivecount() + { + this.givecountSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializetriggerfavorcount() + { + return this.triggerfavorcountSpecified; + } + + private void Resettriggerfavorcount() + { + this.triggerfavorcountSpecified = false; + } + + private bool ShouldSerializegiveleftaddcount() + { + return this.giveleftaddcountSpecified; + } + + private void Resetgiveleftaddcount() + { + this.giveleftaddcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0