Pull down IResourceDestination.

This commit is contained in:
2024-02-16 18:25:03 +08:00
parent 662cbf0827
commit e9e6d7002a
12 changed files with 258 additions and 185 deletions

View File

@@ -1,5 +1,6 @@
using Cryville.Common.Unity;
using Cryville.Common;
using Cryville.Common.Unity;
using Cryville.Crtr.Browsing.Actions;
using Cryville.Crtr.Extension;
using Newtonsoft.Json;
using System.IO;
@@ -9,7 +10,7 @@ namespace Cryville.Crtr.Browsing.Legacy {
internal class LegacyChartResourceManager : LegacyResourceManager<LegacyChartDetail> {
protected override string Extension { get { return ".umgc"; } }
public LegacyChartResourceManager(string rootPath) : base(rootPath) { }
public LegacyChartResourceManager(LegacyResourceStore store) : base(store) { }
protected override string GetSubRootPath(string rootPath) {
return Path.Combine(rootPath, "charts");
@@ -37,5 +38,9 @@ namespace Cryville.Crtr.Browsing.Legacy {
Meta = meta,
};
}
public override IResourceAction GetImportAction() {
return _store.ImportAction;
}
}
}