/// <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); }
/// <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); }