From 093720606ef6a9cf9223faaec7e53e3867ccd73c Mon Sep 17 00:00:00 2001 From: Till Schreiber Date: Fri, 27 Sep 2024 12:44:49 +0200 Subject: [PATCH] feat(client): add CreateFunction --- api/AltV.Net.Client/Alt.Function.cs | 201 ++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 api/AltV.Net.Client/Alt.Function.cs diff --git a/api/AltV.Net.Client/Alt.Function.cs b/api/AltV.Net.Client/Alt.Function.cs new file mode 100644 index 00000000..caa79426 --- /dev/null +++ b/api/AltV.Net.Client/Alt.Function.cs @@ -0,0 +1,201 @@ +using System; +using AltV.Net.Shared; + +namespace AltV.Net.Client +{ + public partial class Alt + { + public static Function CreateFunction(T func) where T : Delegate + { + return Function.Create(CoreImpl, func); + } + + public static Function CreateFunction(Action function) + { + return Function.Create(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Action function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction(Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, function); + } + + public static Function CreateFunction( + Func function) + { + return Function.Create>(CoreImpl, + function); + } + } +} \ No newline at end of file