public void AddArchive(string assetType, List <string> assetPathList, string archiveType) { if (assetType == "Common") { ResourceManager.AddCommonArchive(assetPathList, archiveType); return; } if (!archiveDict.ContainsKey(assetType)) { archiveDict[assetType] = new MVResourceManager(); } MVResourceManager manager = archiveDict[assetType]; manager.AddArchive(assetPathList, archiveType); }
public static void SetupFonts() { MVResourceManager resourceManager = AssetManager.Instance.GetResourceManager("Font"); if (resourceManager == null) { return; } List <Axiom.FileSystem.Archive> archives = resourceManager.GetArchives(); foreach (Axiom.FileSystem.Archive archive in archives) { string[] files = archive.GetFileNamesLike("", ".TTF"); foreach (string file in files) { FontManager.AddFontFile(file); } } }
public void AddArchive(string assetType, List<string> assetPathList, string archiveType) { if (assetType == "Common") { ResourceManager.AddCommonArchive(assetPathList, archiveType); return; } if (!archiveDict.ContainsKey(assetType)) archiveDict[assetType] = new MVResourceManager(); MVResourceManager manager = archiveDict[assetType]; manager.AddArchive(assetPathList, archiveType); }