using System; using System.Collections.Generic; using ProtoBuf; namespace KKSG { [ProtoContract(Name = "ItemRandAttr")] [Serializable] public class ItemRandAttr : IExtensible { [ProtoMember(1, Name = "attrs", DataFormat = DataFormat.Default)] public List attrs { get { return this._attrs; } } private readonly List _attrs = new List(); private IExtension extensionObject; IExtension IExtensible.GetExtensionObject(bool createIfMissing) { return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); } } }