void OnFileModify(string fullname) { iImporter importer = ImporterManager.GetImporter(fullname); if (importer == null) { return; } ImporterManager.Import(importer, fullname); }
void OnGUI_File(File f) { if (f == null) { return; } ImGui.Text(string.Format("{0}", f.name)); iImporter importer = ImporterManager.GetImporter(f.name); if (importer != null && importer.HasGUI) { importer.OnGUI(); } }
public static void AddImporter(iImporter importer) { if (importer.exts == null) { return; } foreach (string ext in importer.exts) { if (pool.ContainsKey(ext)) { continue; } pool.Add(ext, importer); } }
public static void Import(iImporter importer, string fullname) { importer.Import(fullname); }