Implement use skin action.
This commit is contained in:
@@ -2,15 +2,17 @@ using Cryville.Crtr.Skin;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cryville.Crtr.Browsing.Legacy {
|
||||
internal class LegacySkinDetail : IResourceMeta {
|
||||
public string Name { get; internal set; }
|
||||
internal class LegacySkinDetail : ISkinDetail {
|
||||
public string RulesetId { get { return Meta.ruleset; } }
|
||||
public string Name { get { return Meta == null ? OverrideName : Meta.name; } }
|
||||
public string OverrideName { 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);
|
||||
if (OverrideName != null)
|
||||
yield return new MetaProperty("Name", OverrideName);
|
||||
yield break;
|
||||
}
|
||||
yield return new MetaProperty("Name", Meta.name);
|
||||
|
Reference in New Issue
Block a user