using System; using System.Collections.Generic; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "Attribute")] [Serializable] public class Attribute : IExtensible { [ProtoMember(1, Name = "basicAttribute", DataFormat = DataFormat.TwosComplement)] public List basicAttribute { get { return this._basicAttribute; } } [ProtoMember(2, Name = "percentAttribute", DataFormat = DataFormat.TwosComplement)] public List percentAttribute { get { return this._percentAttribute; } } [ProtoMember(3, Name = "attrID", DataFormat = DataFormat.TwosComplement)] public List attrID { get { return this._attrID; } } private readonly List _basicAttribute = new List(); private readonly List _percentAttribute = new List(); private readonly List _attrID = new List(); private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }