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/RiftGuildRankInfo.cs | 207 +++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs new file mode 100644 index 00000000..44e4fedc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftGuildRankInfo")] + [Serializable] + public class RiftGuildRankInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo roleInfo + { + get + { + return this._roleInfo; + } + set + { + this._roleInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "riftFloor", DataFormat = DataFormat.TwosComplement)] + public int riftFloor + { + get + { + return this._riftFloor ?? 0; + } + set + { + this._riftFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftFloorSpecified + { + get + { + return this._riftFloor != null; + } + set + { + bool flag = value == (this._riftFloor == null); + if (flag) + { + this._riftFloor = (value ? new int?(this.riftFloor) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "riftStar", DataFormat = DataFormat.TwosComplement)] + public int riftStar + { + get + { + return this._riftStar ?? 0; + } + set + { + this._riftStar = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftStarSpecified + { + get + { + return this._riftStar != null; + } + set + { + bool flag = value == (this._riftStar == null); + if (flag) + { + this._riftStar = (value ? new int?(this.riftStar) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "costTime", DataFormat = DataFormat.TwosComplement)] + public int costTime + { + get + { + return this._costTime ?? 0; + } + set + { + this._costTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costTimeSpecified + { + get + { + return this._costTime != null; + } + set + { + bool flag = value == (this._costTime == null); + if (flag) + { + this._costTime = (value ? new int?(this.costTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + private RoleBriefInfo _roleInfo = null; + + private int? _riftFloor; + + private int? _riftStar; + + private int? _costTime; + + private int? _sceneID; + + private IExtension extensionObject; + + private bool ShouldSerializeriftFloor() + { + return this.riftFloorSpecified; + } + + private void ResetriftFloor() + { + this.riftFloorSpecified = false; + } + + private bool ShouldSerializeriftStar() + { + return this.riftStarSpecified; + } + + private void ResetriftStar() + { + this.riftStarSpecified = false; + } + + private bool ShouldSerializecostTime() + { + return this.costTimeSpecified; + } + + private void ResetcostTime() + { + this.costTimeSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0