Aura.Shared.Scripting.ScriptManager.LoadScripts C# (CSharp) Метод

LoadScripts() приватный Метод

Loads scripts from collection.
private LoadScripts ( ICollection scriptFileList ) : int
scriptFileList ICollection Collection of script file names.
Результат int
		private int LoadScripts(ICollection<string> scriptFileList)
		{
			int done = 0, loaded = 0;
			foreach (string scriptPath in scriptFileList)
			{
				try
				{
					if (this.LoadScript(scriptPath))
						loaded++;
				}
				catch (FileNotFoundException)
				{
					Log.Warning("Script not found: {0}", scriptPath);
					continue;
				}

				if (done % 5 == 0)
					Log.Progress(done + 1, scriptFileList.Count);

				done++;
			}
			Log.Progress(100, 100);

			return loaded;
		}

Same methods

ScriptManager::LoadScripts ( string scriptListFile ) : void