Esempio n. 1
0
 /// <summary>スクリプトの実行を要求します。</summary>
 /// <param name="scriptName">実行してほしいスクリプトの名前</param>
 /// <param name="requestPriority">実行の優先度</param>
 public void Request(string scriptName, ScriptPriority requestPriority)
 {
     if (requestPriority > _currentPriority)
     {
         RequestedScriptName     = scriptName;
         RequestedScriptPriority = requestPriority;
         IsScriptRequested       = true;
         ScriptReader.CancelRead();
         ScriptRequested?.Invoke(this, EventArgs.Empty);
     }
 }
Esempio n. 2
0
 /// <summary>スクリプトの実行を要求します。</summary>
 /// <param name="scriptName">実行したいスクリプト名</param>
 /// <param name="priority">実行の優先度</param>
 public void Request(string scriptName, ScriptPriority priority = ScriptPriority.Normal)
 {
     ScriptRequested?.Invoke(this, new ScriptRequestorEventArgs(scriptName, priority));
 }