Rename resource meta interface.
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
using Cryville.Common;
|
||||
using Cryville.Crtr.Browsing.UI;
|
||||
using Cryville.Crtr.Extension;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public struct ChartDetail : IBrowserItemMeta {
|
||||
public class ChartDetail : IResourceMeta {
|
||||
public AsyncDelivery<Texture2D> Cover { get; set; }
|
||||
public ChartMeta Meta { get; set; }
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.UI {
|
||||
public interface IBrowserItemMeta {
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public interface IResourceMeta {
|
||||
IEnumerable<MetaProperty> Properties { get; }
|
||||
}
|
||||
}
|
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 026e696a02e3d674bad92bf80aa77278
|
||||
guid: 13b23c872f3abc14aba6ae2e5bb8e5c6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.UI {
|
||||
namespace Cryville.Crtr.Browsing {
|
||||
public class MetaProperty {
|
||||
public string Name { get; set; }
|
||||
public IReadOnlyDictionary<string, object> Values { get; set; }
|
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c8ccfc6a81a7c774d8df59df0ddd4c1a
|
||||
guid: 3102e5dd2d50b694681b2750099b6df6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
@@ -3,8 +3,8 @@ using UnityEngine;
|
||||
namespace Cryville.Crtr.Browsing.UI {
|
||||
internal abstract class BrowserItem : MonoBehaviour {
|
||||
public int? Id { get; private set; }
|
||||
protected IBrowserItemMeta meta;
|
||||
internal void Load(int id, IBrowserItemMeta item, bool selected) {
|
||||
protected IResourceMeta meta;
|
||||
internal void Load(int id, IResourceMeta item, bool selected) {
|
||||
OnReset();
|
||||
Id = id;
|
||||
meta = item;
|
||||
|
Reference in New Issue
Block a user