From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/SkyCityFinalBaseInfo.cs | 320 +++++++++++++++++++++ 1 file changed, 320 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs new file mode 100644 index 00000000..8d21ae04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityFinalBaseInfo")] + [Serializable] + public class SkyCityFinalBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uuid", DataFormat = DataFormat.TwosComplement)] + public ulong uuid + { + get + { + return this._uuid ?? 0UL; + } + set + { + this._uuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uuidSpecified + { + get + { + return this._uuid != null; + } + set + { + bool flag = value == (this._uuid == null); + if (flag) + { + this._uuid = (value ? new ulong?(this.uuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dead", DataFormat = DataFormat.TwosComplement)] + public uint dead + { + get + { + return this._dead ?? 0u; + } + set + { + this._dead = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadSpecified + { + get + { + return this._dead != null; + } + set + { + bool flag = value == (this._dead == null); + if (flag) + { + this._dead = (value ? new uint?(this.dead) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "intimategree", DataFormat = DataFormat.TwosComplement)] + public uint intimategree + { + get + { + return this._intimategree ?? 0u; + } + set + { + this._intimategree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool intimategreeSpecified + { + get + { + return this._intimategree != null; + } + set + { + bool flag = value == (this._intimategree == null); + if (flag) + { + this._intimategree = (value ? new uint?(this.intimategree) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isfriend", DataFormat = DataFormat.Default)] + public bool isfriend + { + get + { + return this._isfriend ?? false; + } + set + { + this._isfriend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isfriendSpecified + { + get + { + return this._isfriend != null; + } + set + { + bool flag = value == (this._isfriend == null); + if (flag) + { + this._isfriend = (value ? new bool?(this.isfriend) : null); + } + } + } + + private ulong? _uuid; + + private uint? _job; + + private uint? _killer; + + private uint? _dead; + + private uint? _intimategree; + + private bool? _ismvp; + + private bool? _isfriend; + + private IExtension extensionObject; + + private bool ShouldSerializeuuid() + { + return this.uuidSpecified; + } + + private void Resetuuid() + { + this.uuidSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializedead() + { + return this.deadSpecified; + } + + private void Resetdead() + { + this.deadSpecified = false; + } + + private bool ShouldSerializeintimategree() + { + return this.intimategreeSpecified; + } + + private void Resetintimategree() + { + this.intimategreeSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + private bool ShouldSerializeisfriend() + { + return this.isfriendSpecified; + } + + private void Resetisfriend() + { + this.isfriendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0