Add chart file resource.

This commit is contained in:
2022-11-17 17:21:09 +08:00
parent fd9e2ce409
commit 34b17f3111
3 changed files with 8 additions and 5 deletions

View File

@@ -17,8 +17,8 @@ namespace Cryville.Crtr.Browsing {
return string.Format("{0} ({1})", Name, ReflectionHelper.GetSimpleName(GetType()));
}
}
public class ChartResource : Resource {
public ChartResource(string name, Chart main, ChartMeta meta) : base(name) {
public class RawChartResource : Resource {
public RawChartResource(string name, Chart main, ChartMeta meta) : base(name) {
Main = main; Meta = meta;
}
public Chart Main { get; private set; }
@@ -32,6 +32,9 @@ namespace Cryville.Crtr.Browsing {
public FileInfo Source { get; private set; }
public override bool Valid { get { return Source.Exists; } }
}
public class ChartResource : FileResource {
public ChartResource(string name, FileInfo src) : base(name, src) { }
}
public class CoverResource : FileResource {
public CoverResource(string name, FileInfo src) : base(name, src) { }
}