Load() public method

public Load ( ) : void
return void
コード例 #1
0
        private void ParseGenericEncounterScripts(string folderPath)
        {
            List <string> genericScriptFiles = new List <string>();

            SearchForFileType(folderPath, "*.lua", genericScriptFiles);
            foreach (string filepath in genericScriptFiles)
            {
                EncounterScriptFile file = new EncounterScriptFile(filepath);
                file.Load();
                mGenericScriptNodes.Add(file.Name, file);
            }
        }
コード例 #2
0
        private void ParseEncounterScripts(string moduleName, string folderPath)
        {
            List <string> filePaths = new List <string>();

            SearchForFileType(folderPath, "*.lua", filePaths);

            foreach (string filepath in filePaths)
            {
                EncounterScriptFile file = new EncounterScriptFile(filepath);
                file.Load();
                string fileName = file.Name;

                if (mCustomScriptNodes.ContainsKey(fileName))
                {
                    int numCollisions = 0;
                    kCollisions.TryGetValue(fileName, out numCollisions);
                    numCollisions++;
                    kCollisions[fileName] = numCollisions;
                    fileName = fileName + "(" + numCollisions + ")";
                }

                mCustomScriptNodes.Add(fileName, file);
            }
        }
コード例 #3
0
 private void ParseGenericEncounterScripts(string folderPath)
 {
     List<string> genericScriptFiles = new List<string>();
     SearchForFileType(folderPath, "*.lua", genericScriptFiles);
     foreach (string filepath in genericScriptFiles)
     {
         EncounterScriptFile file = new EncounterScriptFile(filepath);
         file.Load();
         mGenericScriptNodes.Add(file.Name, file);
     }
 }
コード例 #4
0
        private void ParseEncounterScripts(string moduleName, string folderPath)
        {
            List<string> filePaths = new List<string>();
            SearchForFileType(folderPath, "*.lua", filePaths);

            foreach (string filepath in filePaths)
            {
                EncounterScriptFile file = new EncounterScriptFile(filepath);
                file.Load();
                string fileName = file.Name;

                if (mCustomScriptNodes.ContainsKey(fileName))
                {
                    int numCollisions = 0;
                    kCollisions.TryGetValue(fileName, out numCollisions);
                    numCollisions++;
                    kCollisions[fileName] = numCollisions;
                    fileName = fileName + "(" + numCollisions + ")";
                }

                mCustomScriptNodes.Add(fileName, file);
            }
        }