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/BRRankState.cs | 191 +++++++++++++++++++++ 1 file changed, 191 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs new file mode 100644 index 00000000..33181750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BRRankState")] + [Serializable] + public class BRRankState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "confid", DataFormat = DataFormat.TwosComplement)] + public int confid + { + get + { + return this._confid ?? 0; + } + set + { + this._confid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool confidSpecified + { + get + { + return this._confid != null; + } + set + { + bool flag = value == (this._confid == null); + if (flag) + { + this._confid = (value ? new int?(this.confid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "brbid1", DataFormat = DataFormat.TwosComplement)] + public int brbid1 + { + get + { + return this._brbid1 ?? 0; + } + set + { + this._brbid1 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool brbid1Specified + { + get + { + return this._brbid1 != null; + } + set + { + bool flag = value == (this._brbid1 == null); + if (flag) + { + this._brbid1 = (value ? new int?(this.brbid1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "brbid2", DataFormat = DataFormat.TwosComplement)] + public int brbid2 + { + get + { + return this._brbid2 ?? 0; + } + set + { + this._brbid2 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool brbid2Specified + { + get + { + return this._brbid2 != null; + } + set + { + bool flag = value == (this._brbid2 == null); + if (flag) + { + this._brbid2 = (value ? new int?(this.brbid2) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + private int? _confid; + + private int? _brbid1; + + private int? _brbid2; + + private int? _rank; + + private IExtension extensionObject; + + private bool ShouldSerializeconfid() + { + return this.confidSpecified; + } + + private void Resetconfid() + { + this.confidSpecified = false; + } + + private bool ShouldSerializebrbid1() + { + return this.brbid1Specified; + } + + private void Resetbrbid1() + { + this.brbid1Specified = false; + } + + private bool ShouldSerializebrbid2() + { + return this.brbid2Specified; + } + + private void Resetbrbid2() + { + this.brbid2Specified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0