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/GuildGoblinInfoRes.cs | 203 +++++++++++++++++++++ 1 file changed, 203 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs new file mode 100644 index 00000000..88194fb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinInfoRes")] + [Serializable] + public class GuildGoblinInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(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 int?(this.level) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftEnterCount", DataFormat = DataFormat.TwosComplement)] + public int leftEnterCount + { + get + { + return this._leftEnterCount ?? 0; + } + set + { + this._leftEnterCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftEnterCountSpecified + { + get + { + return this._leftEnterCount != null; + } + set + { + bool flag = value == (this._leftEnterCount == null); + if (flag) + { + this._leftEnterCount = (value ? new int?(this.leftEnterCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildTotalKillCount", DataFormat = DataFormat.TwosComplement)] + public int guildTotalKillCount + { + get + { + return this._guildTotalKillCount ?? 0; + } + set + { + this._guildTotalKillCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildTotalKillCountSpecified + { + get + { + return this._guildTotalKillCount != null; + } + set + { + bool flag = value == (this._guildTotalKillCount == null); + if (flag) + { + this._guildTotalKillCount = (value ? new int?(this.guildTotalKillCount) : null); + } + } + } + + [ProtoMember(4, Name = "memberRankInfo", DataFormat = DataFormat.Default)] + public List memberRankInfo + { + get + { + return this._memberRankInfo; + } + } + + [ProtoMember(5, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + private int? _level; + + private int? _leftEnterCount; + + private int? _guildTotalKillCount; + + private readonly List _memberRankInfo = new List(); + + private ErrorCode? _errorCode; + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeleftEnterCount() + { + return this.leftEnterCountSpecified; + } + + private void ResetleftEnterCount() + { + this.leftEnterCountSpecified = false; + } + + private bool ShouldSerializeguildTotalKillCount() + { + return this.guildTotalKillCountSpecified; + } + + private void ResetguildTotalKillCount() + { + this.guildTotalKillCountSpecified = false; + } + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0