Plugin API v93: web panel table fields and SDK wrappers (number provisional)
Four appended table slots (WebPanelOpen/Navigate/Close/GetState), native structs and code enums in engine and SDK, a WebPanelApi stub answering Unavailable (CoreCLR flavour only; AOT leaves the slots zero), SDK OpenWebPanel/NavigateWebPanel/CloseWebPanel/GetWebPanelState with HasWebPanel gated on Version >= 93, parity tests in PluginManifestTests. Also adds the missing System usings to the Task 1 WebPanel files, which did not compile in the engine project (no ImplicitUsings). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0d5b9700db
commit
28d480c90a
11 changed files with 437 additions and 3 deletions
19
src/RynthCore.Engine/WebPanel/WebPanelApi.cs
Normal file
19
src/RynthCore.Engine/WebPanel/WebPanelApi.cs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
using RynthCore.Engine.Plugins;
|
||||
|
||||
namespace RynthCore.Engine.WebPanel;
|
||||
|
||||
/// <summary>
|
||||
/// The engine side of the v93 web panel calls (PluginContract.cs WebPanelOpenFn..WebPanelGetStateFn).
|
||||
/// Task 2 stub: every call answers Unavailable; the WebView2 host arrives in a later task.
|
||||
/// No call here may block its caller (AC's main thread, the plugin pump and ImGui draws all call these).
|
||||
/// </summary>
|
||||
internal static class WebPanelApi
|
||||
{
|
||||
public static unsafe int Open(WebPanelOpenNative* open) => (int)WebPanelCode.Unavailable;
|
||||
|
||||
public static unsafe int Navigate(int handle, byte* url) => (int)WebPanelCode.Unavailable;
|
||||
|
||||
public static int Close(int handle) => (int)WebPanelCode.Unavailable;
|
||||
|
||||
public static unsafe int GetState(int handle, WebPanelStateNative* state) => (int)WebPanelCode.Unavailable;
|
||||
}
|
||||
Loading…
Reference in a new issue