mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
31 lines
704 B
Beef
31 lines
704 B
Beef
using System;
|
|
using GlitchyEditor.EditWindows;
|
|
using GlitchyEngine.Content;
|
|
|
|
namespace GlitchyEngine.Scripting;
|
|
|
|
extension ScriptGlue
|
|
{
|
|
static this()
|
|
{
|
|
OnRegisterNativeCalls.Add(new => RegisterExtensionCalls);
|
|
}
|
|
|
|
[RegisterMethod(IsExtension = true)]
|
|
private static void RegisterExtensionCalls()
|
|
{
|
|
}
|
|
|
|
[RegisterCall(EngineResultAsBool = true, IsExtension = true)]
|
|
static EngineResult ImGuiExtension_ShowAssetDropTarget(ref AssetHandle assetHandle)
|
|
{
|
|
return ComponentEditWindow.ShowAssetDropTarget(ref assetHandle) ? .Ok : .False;
|
|
}
|
|
|
|
[RegisterCall(IsExtension = true), CallingConvention(.Cdecl)]
|
|
static void ImGuiExtension_ListElementGrabber()
|
|
{
|
|
ImGui.ImGui.ListElementGrabber();
|
|
}
|
|
}
|