public void AddGlobalFunc(dynamic func, string name) { var s1 = Scopes.ToArray()[0]; var func_l = new FuncLink(); func_l.ManagedFunc = func; s1.RegisterFunc(func_l); }
public void AddCFunc(string name, CFuncLink link) { FuncLink FuncLink = new FuncLink { Name = name, Link = link, Type = FuncType.CSharp, }; SystemScope.RegisterFunc(FuncLink); }
public virtual void RegisterFunc(FuncLink func) { LocalFuncs.Add(func); }