public static bool MatchTemplate(string filePath, string extension, string content) { EditorJobSystem.JoinWork(); var list = templates.Copy; for (int t = 0; t < list.Count; t++) { var template = list[t]; if (template.FullName != filePath) { continue; } return(template.Match(template.FileName, extension, content)); } return(false); }
public void Commit() { EditorJobSystem.AddWork(this); }