public static void AddDelegate(string name, Delegate del, string documentation = "", string example = "")
 {
     BindingHelpers.CreateBindFunction(bindItems, name, del, false, documentation ?? "", example ?? "");
 }
 /// <summary>
 /// Add a specific <see cref="Delegate"/> to the bindings using the method Name as the name
 /// </summary>
 /// <param name="name"></param>
 /// <param name="del"></param>
 /// <param name="documentation"></param>
 /// <param name="example"></param>
 public static void BindDelegate(Delegate del, string documentation = "", string example = "")
 {
     BindingHelpers.CreateBindFunction(bindItems, del.Method.Name, del, false, documentation ?? "", example ?? "");
 }
 /// <summary>
 /// Add a specific <see cref="Action"/> to the bindings.
 /// </summary>
 /// <param name="path">The path to bind to. Can contain "."</param>
 /// <param name="action"></param>
 /// <param name="documentation"></param>
 /// <param name="example"></param>
 public static void BindAction(string path, Action action, string documentation = "", string example = "")
 {
     BindingHelpers.CreateBindFunction(bindItems, path, action, false, documentation ?? "", example ?? "");
 }
 /// <summary>
 /// Add a specific <see cref="Action"/> to the bindings, using the method's Name as the name
 /// </summary>
 /// <param name="action"></param>
 /// <param name="documentation"></param>
 /// <param name="example"></param>
 public static void BindAction(Action action, string documentation = "", string example = "")
 {
     BindingHelpers.CreateBindFunction(bindItems, action.Method.Name, action, false, documentation ?? "", example ?? "");
 }
 /// <summary>
 /// Add an object at the specified path
 /// </summary>
 /// <param name="path"></param>
 /// <param name="o"></param>
 public static void AddGlobalObject(string path, object o)
 {
     RegisterUserDataType(o.GetType());
     BindingHelpers.CreateBindUserObject(bindItems, path, o);
 }
 /// <summary>
 /// Allows you to access static functions and members on the type by using the Lua global with the name<para/>
 /// <para/>
 /// Equivalent to script.Globals[name] = t
 /// </summary>
 /// <param name="path"></param>
 /// <param name="t"></param>
 public static void AddGlobalType(string path, Type t)
 {
     RegisterUserDataType(t);
     BindingHelpers.CreateBindType(bindItems, path, t);
 }
 /// <summary>
 /// Allows you to access static functions and members on the type by using the Lua global with the name<para/>
 /// Equivalent to script.Globals[t.Name] = t
 /// </summary>
 /// <param name="t"></param>
 public static void AddGlobalType(Type t)
 {
     RegisterUserDataType(t);
     BindingHelpers.CreateBindType(bindItems, t.Name, t);
 }
 public static void AddEnum <T>(string path)
 {
     BindingHelpers.CreateBindEnum(bindItems, path, typeof(T));
 }
 public static void AddEnum <T>() where T : Enum
 {
     BindingHelpers.CreateBindEnum(bindItems, typeof(T).Name, typeof(T));
 }