Now bindings works automatically and is smoooth, aslo strings work now

This commit is contained in:
antopilo
2025-04-04 19:01:01 -04:00
parent a516f09cf5
commit 5bb4303eff
19 changed files with 91 additions and 34 deletions

View File

@@ -17,5 +17,19 @@ namespace Nuake.Net
Internals.AudioModuleSetMutedICall(muted);
}
}
public static void HelloWorld()
{
unsafe
{
Internals.AudioModuleHelloWorldICall();
}
}
public static void SetName(string name)
{
unsafe
{
Internals.AudioModuleSetNameICall(name);
}
}
}
}

View File

@@ -10,11 +10,11 @@ namespace Nuake.Net
Internals.ExampleModuleExampleFunctionICall();
}
}
public static void ExampleModuleLog(string hi)
public static void ExampleModuleLog16(string hi2)
{
unsafe
{
Internals.ExampleModuleExampleModuleLogICall(hi);
Internals.ExampleModuleExampleModuleLog16ICall(hi2);
}
}
}

View File

@@ -6,10 +6,12 @@ public class Internals
// AudioModule
internal static unsafe delegate*<float,void>AudioModuleSetVolumeICall;
internal static unsafe delegate*<bool,void>AudioModuleSetMutedICall;
internal static unsafe delegate*<void>AudioModuleHelloWorldICall;
internal static unsafe delegate*<NativeString,void>AudioModuleSetNameICall;
// ExampleModule
internal static unsafe delegate*<void>ExampleModuleExampleFunctionICall;
internal static unsafe delegate*<NativeString,void>ExampleModuleExampleModuleLogICall;
internal static unsafe delegate*<NativeString,void>ExampleModuleExampleModuleLog16ICall;
}
}