From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs | 277 +++++++++++++++++++++ 1 file changed, 277 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs new file mode 100644 index 00000000..e7009960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkOneRecord")] + [Serializable] + public class PkOneRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opposer", DataFormat = DataFormat.TwosComplement)] + public ulong opposer + { + get + { + return this._opposer ?? 0UL; + } + set + { + this._opposer = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opposerSpecified + { + get + { + return this._opposer != null; + } + set + { + bool flag = value == (this._opposer == null); + if (flag) + { + this._opposer = (value ? new ulong?(this.opposer) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public int point + { + get + { + return this._point ?? 0; + } + set + { + this._point = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new int?(this.point) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "honorpoint", DataFormat = DataFormat.TwosComplement)] + public uint honorpoint + { + get + { + return this._honorpoint ?? 0u; + } + set + { + this._honorpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honorpointSpecified + { + get + { + return this._honorpoint != null; + } + set + { + bool flag = value == (this._honorpoint == null); + if (flag) + { + this._honorpoint = (value ? new uint?(this.honorpoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + private ulong? _opposer; + + private uint? _profession; + + private string _name; + + private int? _point; + + private uint? _honorpoint; + + private PkResultType? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeopposer() + { + return this.opposerSpecified; + } + + private void Resetopposer() + { + this.opposerSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializehonorpoint() + { + return this.honorpointSpecified; + } + + private void Resethonorpoint() + { + this.honorpointSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0