mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-21 20:08:40 +03:00
Now bindings works automatically and is smoooth, aslo strings work now
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,3 +27,11 @@ project "NuakeNet"
|
||||
"Coral.Managed"
|
||||
}
|
||||
|
||||
prebuildcommands {
|
||||
'dotnet dotnet run --project %{wks.location}NuakeNetGenerator/NuakeNetGenerator.csproj'
|
||||
}
|
||||
|
||||
postbuildcommands {
|
||||
'{COPYFILE} "%{wks.location}NuakeNet/Build/%{cfg.buildcfg}/Binaries/NuakeNet.dll" "%{wks.location}Editor/Build/%{cfg.buildcfg}/Binaries/NuakeNet.dll"'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user