using System; using System.ComponentModel; using System.Xml.Serialization; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "ItemBrief")] [Serializable] public class ItemBrief : IExtensible { [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] public uint itemID { get { return this._itemID ?? 0u; } set { this._itemID = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool itemIDSpecified { get { return this._itemID != null; } set { bool flag = value == (this._itemID == null); if (flag) { this._itemID = (value ? new uint?(this.itemID) : null); } } } [ProtoMember(2, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] public uint itemCount { get { return this._itemCount ?? 0u; } set { this._itemCount = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool itemCountSpecified { get { return this._itemCount != null; } set { bool flag = value == (this._itemCount == null); if (flag) { this._itemCount = (value ? new uint?(this.itemCount) : null); } } } [ProtoMember(3, IsRequired = false, Name = "isbind", DataFormat = DataFormat.Default)] public bool isbind { get { return this._isbind ?? false; } set { this._isbind = new bool?(value); } } [XmlIgnore] [Browsable(false)] public bool isbindSpecified { get { return this._isbind != null; } set { bool flag = value == (this._isbind == null); if (flag) { this._isbind = (value ? new bool?(this.isbind) : null); } } } [ProtoMember(4, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] public uint cooldown { get { return this._cooldown ?? 0u; } set { this._cooldown = new uint?(value); } } [XmlIgnore] [Browsable(false)] public bool cooldownSpecified { get { return this._cooldown != null; } set { bool flag = value == (this._cooldown == null); if (flag) { this._cooldown = (value ? new uint?(this.cooldown) : null); } } } private uint? _itemID; private uint? _itemCount; private bool? _isbind; private uint? _cooldown; private IExtension extensionObject; private bool ShouldSerializeitemID() { return this.itemIDSpecified; } private void ResetitemID() { this.itemIDSpecified = false; } private bool ShouldSerializeitemCount() { return this.itemCountSpecified; } private void ResetitemCount() { this.itemCountSpecified = false; } private bool ShouldSerializeisbind() { return this.isbindSpecified; } private void Resetisbind() { this.isbindSpecified = false; } private bool ShouldSerializecooldown() { return this.cooldownSpecified; } private void Resetcooldown() { this.cooldownSpecified = false; } IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }