using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "LevelChanged")] [Serializable] public class LevelChanged : IExtensible { [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] public uint level { get { return this._level ?? 0u; } set { this._level = new uint?(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 uint?(this.level) : null); } } } [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] public ulong exp { get { return this._exp ?? 0UL; } set { this._exp = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool expSpecified { get { return this._exp != null; } set { bool flag = value == (this._exp == null); if (flag) { this._exp = (value ? new ulong?(this.exp) : null); } } } [ProtoMember(3, IsRequired = false, Name = "maxexp", DataFormat = DataFormat.TwosComplement)] public ulong maxexp { get { return this._maxexp ?? 0UL; } set { this._maxexp = new ulong?(value); } } [XmlIgnore] [Browsable(false)] public bool maxexpSpecified { get { return this._maxexp != null; } set { bool flag = value == (this._maxexp == null); if (flag) { this._maxexp = (value ? new ulong?(this.maxexp) : null); } } } [ProtoMember(4, Name = "attrid", DataFormat = DataFormat.TwosComplement)] public List attrid { get { return this._attrid; } } [ProtoMember(5, Name = "attroldvalue", DataFormat = DataFormat.TwosComplement)] public List attroldvalue { get { return this._attroldvalue; } } [ProtoMember(6, Name = "attrnewvalue", DataFormat = DataFormat.TwosComplement)] public List attrnewvalue { get { return this._attrnewvalue; } } private uint? _level; private ulong? _exp; private ulong? _maxexp; private readonly List _attrid = new List(); private readonly List _attroldvalue = new List(); private readonly List _attrnewvalue = new List(); private IExtension extensionObject; private bool ShouldSerializelevel() { return this.levelSpecified; } private void Resetlevel() { this.levelSpecified = false; } private bool ShouldSerializeexp() { return this.expSpecified; } private void Resetexp() { this.expSpecified = false; } private bool ShouldSerializemaxexp() { return this.maxexpSpecified; } private void Resetmaxexp() { this.maxexpSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }