using System; using System.Collections.Generic; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "SkillChangedData")] [Serializable] public class SkillChangedData : IExtensible { [ProtoMember(1, Name = "newSkill", DataFormat = DataFormat.TwosComplement)] public List newSkill { get { return this._newSkill; } } [ProtoMember(2, Name = "newSkillLevel", DataFormat = DataFormat.TwosComplement)] public List newSkillLevel { get { return this._newSkillLevel; } } [ProtoMember(3, Name = "removeSkill", DataFormat = DataFormat.TwosComplement)] public List removeSkill { get { return this._removeSkill; } } [ProtoMember(4, Name = "changedSkillHash", DataFormat = DataFormat.TwosComplement)] public List changedSkillHash { get { return this._changedSkillHash; } } [ProtoMember(5, Name = "changedSkillLevel", DataFormat = DataFormat.TwosComplement)] public List changedSkillLevel { get { return this._changedSkillLevel; } } [ProtoMember(6, IsRequired = false, Name = "skillpoint", DataFormat = DataFormat.TwosComplement)] public int skillpoint { get { return this._skillpoint ?? 0; } set { this._skillpoint = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool skillpointSpecified { get { return this._skillpoint != null; } set { bool flag = value == (this._skillpoint == null); if (flag) { this._skillpoint = (value ? new int?(this.skillpoint) : null); } } } [ProtoMember(7, Name = "skillSlot", DataFormat = DataFormat.TwosComplement)] public List skillSlot { get { return this._skillSlot; } } [ProtoMember(8, IsRequired = false, Name = "skillType", DataFormat = DataFormat.TwosComplement)] public int skillType { get { return this._skillType ?? 0; } set { this._skillType = new int?(value); } } [XmlIgnore] [Browsable(false)] public bool skillTypeSpecified { get { return this._skillType != null; } set { bool flag = value == (this._skillType == null); if (flag) { this._skillType = (value ? new int?(this.skillType) : null); } } } [ProtoMember(9, IsRequired = false, Name = "skillpointtwo", DataFormat = DataFormat.TwosComplement)] public uint skillpointtwo { get { return this._skillpointtwo ?? 0u; } set { this._skillpointtwo = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool skillpointtwoSpecified { get { return this._skillpointtwo != null; } set { bool flag = value == (this._skillpointtwo == null); if (flag) { this._skillpointtwo = (value ? new uint?(this.skillpointtwo) : null); } } } [ProtoMember(10, IsRequired = false, Name = "awakepoint", DataFormat = DataFormat.TwosComplement)] public uint awakepoint { get { return this._awakepoint ?? 0u; } set { this._awakepoint = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool awakepointSpecified { get { return this._awakepoint != null; } set { bool flag = value == (this._awakepoint == null); if (flag) { this._awakepoint = (value ? new uint?(this.awakepoint) : null); } } } [ProtoMember(11, IsRequired = false, Name = "awakepointtwo", DataFormat = DataFormat.TwosComplement)] public uint awakepointtwo { get { return this._awakepointtwo ?? 0u; } set { this._awakepointtwo = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool awakepointtwoSpecified { get { return this._awakepointtwo != null; } set { bool flag = value == (this._awakepointtwo == null); if (flag) { this._awakepointtwo = (value ? new uint?(this.awakepointtwo) : null); } } } private readonly List _newSkill = new List(); private readonly List _newSkillLevel = new List(); private readonly List _removeSkill = new List(); private readonly List _changedSkillHash = new List(); private readonly List _changedSkillLevel = new List(); private int? _skillpoint; private readonly List _skillSlot = new List(); private int? _skillType; private uint? _skillpointtwo; private uint? _awakepoint; private uint? _awakepointtwo; private IExtension extensionObject; private bool ShouldSerializeskillpoint() { return this.skillpointSpecified; } private void Resetskillpoint() { this.skillpointSpecified = false; } private bool ShouldSerializeskillType() { return this.skillTypeSpecified; } private void ResetskillType() { this.skillTypeSpecified = false; } private bool ShouldSerializeskillpointtwo() { return this.skillpointtwoSpecified; } private void Resetskillpointtwo() { this.skillpointtwoSpecified = false; } private bool ShouldSerializeawakepoint() { return this.awakepointSpecified; } private void Resetawakepoint() { this.awakepointSpecified = false; } private bool ShouldSerializeawakepointtwo() { return this.awakepointtwoSpecified; } private void Resetawakepointtwo() { this.awakepointtwoSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }