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