From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/PlatFriendRankInfo2Client.cs | 395 +++++++++++++++++++++ 1 file changed, 395 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs new file mode 100644 index 00000000..a1fa1b1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs @@ -0,0 +1,395 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatFriendRankInfo2Client")] + [Serializable] + public class PlatFriendRankInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "platfriendBaseInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatFriend platfriendBaseInfo + { + get + { + return this._platfriendBaseInfo; + } + set + { + this._platfriendBaseInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(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 uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "hasGiveGift", DataFormat = DataFormat.Default)] + public bool hasGiveGift + { + get + { + return this._hasGiveGift ?? false; + } + set + { + this._hasGiveGift = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasGiveGiftSpecified + { + get + { + return this._hasGiveGift != null; + } + set + { + bool flag = value == (this._hasGiveGift == null); + if (flag) + { + this._hasGiveGift = (value ? new bool?(this.hasGiveGift) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "maxAbility", DataFormat = DataFormat.TwosComplement)] + public uint maxAbility + { + get + { + return this._maxAbility ?? 0u; + } + set + { + this._maxAbility = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxAbilitySpecified + { + get + { + return this._maxAbility != null; + } + set + { + bool flag = value == (this._maxAbility == null); + if (flag) + { + this._maxAbility = (value ? new uint?(this.maxAbility) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(6, 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(7, IsRequired = false, Name = "isOnline", DataFormat = DataFormat.Default)] + public bool isOnline + { + get + { + return this._isOnline ?? false; + } + set + { + this._isOnline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isOnlineSpecified + { + get + { + return this._isOnline != null; + } + set + { + bool flag = value == (this._isOnline == null); + if (flag) + { + this._isOnline = (value ? new bool?(this.isOnline) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "startType", DataFormat = DataFormat.TwosComplement)] + public int startType + { + get + { + return this._startType ?? 0; + } + set + { + this._startType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startTypeSpecified + { + get + { + return this._startType != null; + } + set + { + bool flag = value == (this._startType == null); + if (flag) + { + this._startType = (value ? new int?(this.startType) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(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 int?(this.profession) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private PlatFriend _platfriendBaseInfo = null; + + private uint? _rank; + + private bool? _hasGiveGift; + + private uint? _maxAbility; + + private uint? _vipLevel; + + private uint? _level; + + private bool? _isOnline; + + private int? _startType; + + private int? _profession; + + private PayConsume _pre = null; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializehasGiveGift() + { + return this.hasGiveGiftSpecified; + } + + private void ResethasGiveGift() + { + this.hasGiveGiftSpecified = false; + } + + private bool ShouldSerializemaxAbility() + { + return this.maxAbilitySpecified; + } + + private void ResetmaxAbility() + { + this.maxAbilitySpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeisOnline() + { + return this.isOnlineSpecified; + } + + private void ResetisOnline() + { + this.isOnlineSpecified = false; + } + + private bool ShouldSerializestartType() + { + return this.startTypeSpecified; + } + + private void ResetstartType() + { + this.startTypeSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0