using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "ResWarTeamBaseInfo")] [Serializable] public class ResWarTeamBaseInfo : IExtensible { [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] public uint teamid { get { return this._teamid ?? 0u; } set { this._teamid = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool teamidSpecified { get { return this._teamid != null; } set { bool flag = value == (this._teamid == null); if (flag) { this._teamid = (value ? new uint?(this.teamid) : null); } } } [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] public ulong uid { get { return this._uid ?? 0UL; } set { this._uid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool uidSpecified { get { return this._uid != null; } set { bool flag = value == (this._uid == null); if (flag) { this._uid = (value ? new ulong?(this.uid) : null); } } } [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] public string name { get { return this._name ?? ""; } set { this._name = value; } } [XmlIgnore] [Browsable(false)] public bool nameSpecified { get { return this._name != null; } set { bool flag = value == (this._name == null); if (flag) { this._name = (value ? this.name : null); } } } [ProtoMember(4, IsRequired = false, Name = "lv", DataFormat = DataFormat.TwosComplement)] public uint lv { get { return this._lv ?? 0u; } set { this._lv = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool lvSpecified { get { return this._lv != null; } set { bool flag = value == (this._lv == null); if (flag) { this._lv = (value ? new uint?(this.lv) : null); } } } [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] public uint ppt { get { return this._ppt ?? 0u; } set { this._ppt = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool pptSpecified { get { return this._ppt != null; } set { bool flag = value == (this._ppt == null); if (flag) { this._ppt = (value ? new uint?(this.ppt) : null); } } } [ProtoMember(6, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] public uint job { get { return this._job ?? 0u; } set { this._job = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool jobSpecified { get { return this._job != null; } set { bool flag = value == (this._job == null); if (flag) { this._job = (value ? new uint?(this.job) : null); } } } [ProtoMember(7, IsRequired = false, Name = "online", DataFormat = DataFormat.Default)] public bool online { get { return this._online ?? false; } set { this._online = new bool?(value); } } [XmlIgnore] [Browsable(false)] public bool onlineSpecified { get { return this._online != null; } set { bool flag = value == (this._online == null); if (flag) { this._online = (value ? new bool?(this.online) : null); } } } [ProtoMember(8, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] public ulong guildid { get { return this._guildid ?? 0UL; } set { this._guildid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool guildidSpecified { get { return this._guildid != null; } set { bool flag = value == (this._guildid == null); if (flag) { this._guildid = (value ? new ulong?(this.guildid) : null); } } } [ProtoMember(9, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] public string guildname { get { return this._guildname ?? ""; } set { this._guildname = value; } } [XmlIgnore] [Browsable(false)] public bool guildnameSpecified { get { return this._guildname != null; } set { bool flag = value == (this._guildname == null); if (flag) { this._guildname = (value ? this.guildname : null); } } } private uint? _teamid; private ulong? _uid; private string _name; private uint? _lv; private uint? _ppt; private uint? _job; private bool? _online; private ulong? _guildid; private string _guildname; private IExtension extensionObject; private bool ShouldSerializeteamid() { return this.teamidSpecified; } private void Resetteamid() { this.teamidSpecified = false; } private bool ShouldSerializeuid() { return this.uidSpecified; } private void Resetuid() { this.uidSpecified = false; } private bool ShouldSerializename() { return this.nameSpecified; } private void Resetname() { this.nameSpecified = false; } private bool ShouldSerializelv() { return this.lvSpecified; } private void Resetlv() { this.lvSpecified = false; } private bool ShouldSerializeppt() { return this.pptSpecified; } private void Resetppt() { this.pptSpecified = false; } private bool ShouldSerializejob() { return this.jobSpecified; } private void Resetjob() { this.jobSpecified = false; } private bool ShouldSerializeonline() { return this.onlineSpecified; } private void Resetonline() { this.onlineSpecified = false; } private bool ShouldSerializeguildid() { return this.guildidSpecified; } private void Resetguildid() { this.guildidSpecified = false; } private bool ShouldSerializeguildname() { return this.guildnameSpecified; } private void Resetguildname() { this.guildnameSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }