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/LeagueTeamDetail.cs | 289 +++++++++++++++++++++ 1 file changed, 289 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs new file mode 100644 index 00000000..525d5bf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueTeamDetail")] + [Serializable] + public class LeagueTeamDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamname", DataFormat = DataFormat.Default)] + public string teamname + { + get + { + return this._teamname ?? ""; + } + set + { + this._teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamnameSpecified + { + get + { + return this._teamname != null; + } + set + { + bool flag = value == (this._teamname == null); + if (flag) + { + this._teamname = (value ? this.teamname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "zonename", DataFormat = DataFormat.Default)] + public string zonename + { + get + { + return this._zonename ?? ""; + } + set + { + this._zonename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zonenameSpecified + { + get + { + return this._zonename != null; + } + set + { + bool flag = value == (this._zonename == null); + if (flag) + { + this._zonename = (value ? this.zonename : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(6, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(7, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _league_teamid; + + private string _teamname; + + private uint? _serverid; + + private string _zonename; + + private string _servername; + + private readonly List _members = new List(); + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializeteamname() + { + return this.teamnameSpecified; + } + + private void Resetteamname() + { + this.teamnameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializezonename() + { + return this.zonenameSpecified; + } + + private void Resetzonename() + { + this.zonenameSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0