Implement legacy skin resource browser.
This commit is contained in:
22
Assets/Cryville/Crtr/Browsing/Legacy/LegacySkinDetail.cs
Normal file
22
Assets/Cryville/Crtr/Browsing/Legacy/LegacySkinDetail.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Cryville.Crtr.Skin;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.Legacy {
|
||||
internal class LegacySkinDetail : IResourceMeta {
|
||||
public string Name { get; internal set; }
|
||||
public SkinDefinition Meta { get; internal set; }
|
||||
|
||||
public IEnumerable<MetaProperty> Properties {
|
||||
get {
|
||||
if (Meta == null) {
|
||||
if (Name != null)
|
||||
yield return new MetaProperty("Name", Name);
|
||||
yield break;
|
||||
}
|
||||
yield return new MetaProperty("Name", Meta.name);
|
||||
yield return new MetaProperty("Author", Meta.author);
|
||||
yield return new MetaProperty("Ruleset", Meta.ruleset);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user