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