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