Skip to content

Commit

Permalink
Merge branch 'dev' into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
Doxoh committed Sep 27, 2024
2 parents 657c993 + 0937206 commit 868737f
Showing 1 changed file with 201 additions and 0 deletions.
201 changes: 201 additions & 0 deletions api/AltV.Net.Client/Alt.Function.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
using System;
using AltV.Net.Shared;

namespace AltV.Net.Client
{
public partial class Alt
{
public static Function CreateFunction<T>(T func) where T : Delegate
{
return Function.Create(CoreImpl, func);
}

public static Function CreateFunction(Action function)
{
return Function.Create<Action>(CoreImpl, function);
}

public static Function CreateFunction<T1>(Action<T1> function)
{
return Function.Create<Action<T1>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2>(Action<T1, T2> function)
{
return Function.Create<Action<T1, T2>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3>(Action<T1, T2, T3> function)
{
return Function.Create<Action<T1, T2, T3>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4>(Action<T1, T2, T3, T4> function)
{
return Function.Create<Action<T1, T2, T3, T4>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(
Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> function)
{
return Function.Create<Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>>(CoreImpl, function);
}

public static Function CreateFunction<T1>(Func<T1> function)
{
return Function.Create<Func<T1>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2>(Func<T1, T2> function)
{
return Function.Create<Func<T1, T2>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3>(Func<T1, T2, T3> function)
{
return Function.Create<Func<T1, T2, T3>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4>(Func<T1, T2, T3, T4> function)
{
return Function.Create<Func<T1, T2, T3, T4>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5>(Func<T1, T2, T3, T4, T5> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6>(Func<T1, T2, T3, T4, T5, T6> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7>(Func<T1, T2, T3, T4, T5, T6, T7> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8>(Func<T1, T2, T3, T4, T5, T6, T7, T8> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>>(CoreImpl, function);
}

public static Function CreateFunction<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>(
Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> function)
{
return Function.Create<Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult>>(CoreImpl,
function);
}
}
}

0 comments on commit 868737f

Please sign in to comment.