diff --git a/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionVoid.cs b/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionVoid.cs
index 08f9630fd..5d282c8a3 100644
--- a/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionVoid.cs
+++ b/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionVoid.cs
@@ -14,274 +14,215 @@
* along with CounterStrikeSharp. If not, see . *
*/
+using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions;
+
namespace CounterStrikeSharp.API.Modules.Memory;
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
+ public VirtualFunctionVoid(string signature) : base(signature)
+ {
+ }
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public void Invoke()
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function();
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5, arg6);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
}
-public partial class VirtualFunctionVoid
+public partial class VirtualFunctionVoid : MemoryFunctionVoid
{
- private Action Function;
-
- public VirtualFunctionVoid(string signature)
+ public VirtualFunctionVoid(string signature) : base(signature)
{
- this.Function = VirtualFunction.CreateVoid(signature);
}
- public VirtualFunctionVoid(string signature, string binarypath)
+ public VirtualFunctionVoid(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.CreateVoid(signature, binarypath);
}
- public VirtualFunctionVoid(IntPtr objectPtr, int offset)
+ public VirtualFunctionVoid(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.CreateVoid(objectPtr, offset);
}
- public void Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10)
+ public VirtualFunctionVoid(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
}
-}
\ No newline at end of file
+}
diff --git a/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionWithReturn.cs b/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionWithReturn.cs
index 489bb40b0..0ddd4c1b1 100644
--- a/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionWithReturn.cs
+++ b/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctionWithReturn.cs
@@ -14,279 +14,215 @@
* along with CounterStrikeSharp. If not, see . *
*/
+using CounterStrikeSharp.API.Modules.Memory.DynamicFunctions;
+
namespace CounterStrikeSharp.API.Modules.Memory;
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke()
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function();
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5, arg6);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
}
}
-public partial class VirtualFunctionWithReturn
+public partial class VirtualFunctionWithReturn : MemoryFunctionWithReturn
{
- private Func Function;
-
- public VirtualFunctionWithReturn(string signature)
+ public VirtualFunctionWithReturn(string signature) : base(signature)
{
- this.Function = VirtualFunction.Create(signature);
}
- public VirtualFunctionWithReturn(string signature, string binarypath)
+ public VirtualFunctionWithReturn(string signature, string binarypath) : base(signature, binarypath)
{
- this.Function = VirtualFunction.Create(signature, binarypath);
}
- public VirtualFunctionWithReturn(IntPtr objectPtr, int offset)
+ public VirtualFunctionWithReturn(IntPtr objectPtr, int offset) : base(objectPtr, offset)
{
- this.Function = VirtualFunction.Create(objectPtr, offset);
}
- public TResult Invoke(TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10)
+ public VirtualFunctionWithReturn(NativeObject instance, int offset) : base(instance.Handle, offset)
{
- return this.Function(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10);
}
-}
\ No newline at end of file
+}