Ejemplo n.º 1
0
 // All the master files which are dirty and are set to compile
 public static IEnumerable <InkFile> GetFilesRequiringRecompile()
 {
     foreach (InkFile inkFile in InkLibrary.GetMasterInkFiles())
     {
         if (inkFile.requiresCompile && (InkSettings.instance.compileAutomatically || inkFile.compileAutomatically))
         {
             yield return(inkFile);
         }
     }
 }
Ejemplo n.º 2
0
 // All the master files which are set to compile
 public static IEnumerable <InkFile> FilesCompiledByRecompileAll()
 {
     foreach (InkFile inkFile in InkLibrary.GetMasterInkFiles())
     {
         if (InkSettings.instance.compileAutomatically || inkFile.compileAutomatically)
         {
             yield return(inkFile);
         }
     }
 }
Ejemplo n.º 3
0
        public static void RecompileAll()
        {
            InkLibrary.Rebuild();
            List <InkFile> masterInkFiles = InkLibrary.GetMasterInkFiles();

            foreach (InkFile masterInkFile in masterInkFiles)
            {
                InkCompiler.CompileInk(masterInkFile);
            }
        }
        public static void RecompileAll()
        {
            InkLibrary.Rebuild();
            List <InkFile> masterInkFiles = InkLibrary.GetMasterInkFiles();

            foreach (InkFile masterInkFile in masterInkFiles)
            {
                if (InkSettings.Instance.compileAutomatically || masterInkFile.compileAutomatically)
                {
                    InkCompiler.CompileInk(masterInkFile);
                }
            }
        }
Ejemplo n.º 5
0
        public static void RecompileAll()
        {
            List <InkFile> masterInkFiles = InkLibrary.GetMasterInkFiles();
            List <string>  compiledFiles  = new List <string>();

            foreach (InkFile masterInkFile in masterInkFiles)
            {
                if (InkSettings.Instance.compileAutomatically || masterInkFile.compileAutomatically)
                {
                    InkCompiler.CompileInk(masterInkFile);
                    compiledFiles.Add(Path.GetFileName(masterInkFile.filePath));
                }
            }
            string logString = compiledFiles.Count == 0 ?
                               "No valid ink found. Note that only files with 'Compile Automatic' checked are compiled if not set to compile all files automatically in InkSettings file." :
                               "Recompile All will compile " + string.Join(", ", compiledFiles.ToArray());

            Debug.Log(logString);
        }