using Cryville.Common;
using UnityEngine;

namespace Cryville.Crtr.Browsing {
	internal abstract class BrowserItem : MonoBehaviour {
		public int? Id { get; private set; }
		protected ResourceItemMeta meta;
		internal virtual void Load(int id, ResourceItemMeta item) {
			Id = id;
			meta = item;
		}
	}

	public struct ResourceItemMeta {
		public bool IsDirectory { get; set; }
		public AsyncDelivery<Texture2D> Icon { get; set; }
		public string Name { get; set; }
		public string DescriptionMain { get; set; }
		public string DescriptionSub { get; set; }
	}
}