Esempio n. 1
0
 /// <summary>
 ///     Removes the library import from the current lua context
 /// </summary>
 /// <param name="engine"></param>
 /// <param name="library"></param>
 /// <returns></returns>
 public static bool RemoveLibrary(this ScriptEngine engine, IJavaScriptLibrary library)
 {
     library.Remove(engine);
     return(true);
 }
Esempio n. 2
0
 /// <summary>
 ///     Add the library to the current lua context
 /// </summary>
 /// <param name="engine"></param>
 /// <param name="library"></param>
 /// <returns></returns>
 public static bool AddLibrary(this ScriptEngine engine, IJavaScriptLibrary library)
 {
     library.Add(engine);
     return(true);
 }