using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "MayhemRankInfo")] [Serializable] public class MayhemRankInfo : IExtensible { [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] public ulong roleid { get { return this._roleid ?? 0UL; } set { this._roleid = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool roleidSpecified { get { return this._roleid != null; } set { bool flag = value == (this._roleid == null); if (flag) { this._roleid = (value ? new ulong?(this.roleid) : null); } } } [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] public uint point { get { return this._point ?? 0u; } set { this._point = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool pointSpecified { get { return this._point != null; } set { bool flag = value == (this._point == null); if (flag) { this._point = (value ? new uint?(this.point) : null); } } } [ProtoMember(3, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] public uint killcount { get { return this._killcount ?? 0u; } set { this._killcount = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool killcountSpecified { get { return this._killcount != null; } set { bool flag = value == (this._killcount == null); if (flag) { this._killcount = (value ? new uint?(this.killcount) : null); } } } [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] public uint time { get { return this._time ?? 0u; } set { this._time = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool timeSpecified { get { return this._time != null; } set { bool flag = value == (this._time == null); if (flag) { this._time = (value ? new uint?(this.time) : null); } } } [ProtoMember(5, 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(6, 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(7, IsRequired = false, Name = "svrname", DataFormat = DataFormat.Default)] public string svrname { get { return this._svrname ?? ""; } set { this._svrname = value; } } [XmlIgnore] [Browsable(false)] public bool svrnameSpecified { get { return this._svrname != null; } set { bool flag = value == (this._svrname == null); if (flag) { this._svrname = (value ? this.svrname : null); } } } [ProtoMember(8, IsRequired = false, Name = "pro", DataFormat = DataFormat.TwosComplement)] public uint pro { get { return this._pro ?? 0u; } set { this._pro = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool proSpecified { get { return this._pro != null; } set { bool flag = value == (this._pro == null); if (flag) { this._pro = (value ? new uint?(this.pro) : null); } } } private ulong? _roleid; private uint? _point; private uint? _killcount; private uint? _time; private uint? _serverid; private string _name; private string _svrname; private uint? _pro; private IExtension extensionObject; private bool ShouldSerializeroleid() { return this.roleidSpecified; } private void Resetroleid() { this.roleidSpecified = false; } private bool ShouldSerializepoint() { return this.pointSpecified; } private void Resetpoint() { this.pointSpecified = false; } private bool ShouldSerializekillcount() { return this.killcountSpecified; } private void Resetkillcount() { this.killcountSpecified = false; } private bool ShouldSerializetime() { return this.timeSpecified; } private void Resettime() { this.timeSpecified = false; } private bool ShouldSerializeserverid() { return this.serveridSpecified; } private void Resetserverid() { this.serveridSpecified = false; } private bool ShouldSerializename() { return this.nameSpecified; } private void Resetname() { this.nameSpecified = false; } private bool ShouldSerializesvrname() { return this.svrnameSpecified; } private void Resetsvrname() { this.svrnameSpecified = false; } private bool ShouldSerializepro() { return this.proSpecified; } private void Resetpro() { this.proSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }