Exemple #1
0
 public void RegisterFunction(string name, Func <KalkVector, KalkVector, object> func, string category = null)
 {
     RegisterFunction(name, DelegateCustomFunction.CreateFunc(func), category);
 }
Exemple #2
0
 private static DelegateCustomFunction Wrap(Func <KalkLongValue, object> func)
 {
     return(DelegateCustomFunction.CreateFunc(func));
 }
Exemple #3
0
 public void RegisterFunction(string name, Func <object[], KalkColorRgba> func, string category = null)
 {
     RegisterFunction(name, DelegateCustomFunction.CreateFunc(func), category);
 }
Exemple #4
0
 public void RegisterFunction(string name, Func <ScriptVariable, int, object[], object> func, string category = null)
 {
     RegisterFunction(name, DelegateCustomFunction.CreateFunc(func), category);
 }
Exemple #5
0
 public void RegisterFunction(string name, Func <double, double, double> func, string category = null)
 {
     RegisterFunction(name, DelegateCustomFunction.CreateFunc(func), category);
 }