using System; using System.Collections.Generic; using System.ComponentModel; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "ItemForge")] [Serializable] public class ItemForge : IExtensible { [ProtoMember(1, Name = "attrs", DataFormat = DataFormat.Default)] public List attrs { get { return this._attrs; } } [ProtoMember(2, IsRequired = false, Name = "unReplacedAttr", DataFormat = DataFormat.Default)] [DefaultValue(null)] public AttributeInfo unReplacedAttr { get { return this._unReplacedAttr; } set { this._unReplacedAttr = value; } } [ProtoMember(3, Name = "haveAttrs", DataFormat = DataFormat.TwosComplement)] public List haveAttrs { get { return this._haveAttrs; } } private readonly List _attrs = new List(); private AttributeInfo _unReplacedAttr = null; private readonly List _haveAttrs = new List(); private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }