Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Commit()
 {
     EditorJobSystem.AddWork(this);
 }