Example #1
0
        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);
        }
Example #2
0
        public void AddCFunc(string name, CFuncLink link)
        {
            FuncLink FuncLink = new FuncLink
            {
                Name = name,
                Link = link,
                Type = FuncType.CSharp,
            };

            SystemScope.RegisterFunc(FuncLink);
        }
Example #3
0
 public virtual void RegisterFunc(FuncLink func)
 {
     LocalFuncs.Add(func);
 }