Ejemplo n.º 1
0
 /// <summary>
 ///     Register a script with the console
 /// </summary>
 /// <param name="s">The script to register</param>
 /// <param name="c">The console attached callback delegate</param>
 internal static void RegisterConsoleScript(Script s, OnConsoleAttached c)
 {
     RegisteredScripts.Add(new KeyValuePair <Script, OnConsoleAttached>(s, c));
     if (Instance != null)
     {
         c(Instance);
     }
 }
 /// <summary>
 ///     Register a script with the console
 /// </summary>
 /// <param name="s">The script to register</param>
 /// <param name="c">The console attached callback delegate</param>
 internal static void RegisterConsoleScript(Script s, OnConsoleAttached c)
 {
     RegisteredScripts.Add(new KeyValuePair<Script, OnConsoleAttached>(s, c));
     if (Instance != null) c(Instance);
 }