mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-13 11:27:42 +01:00
feat: Dalamud RPC service
A draft for a simple RPC service for Dalamud. Enables use of Dalamud URIs, to be added later.
This commit is contained in:
parent
62b9c1f2a1
commit
78ed4a2b01
12 changed files with 911 additions and 1 deletions
20
Dalamud/Plugin/Services/IPluginLinkHandler.cs
Normal file
20
Dalamud/Plugin/Services/IPluginLinkHandler.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using Dalamud.Networking.Pipes;
|
||||
|
||||
namespace Dalamud.Plugin.Services;
|
||||
|
||||
/// <summary>
|
||||
/// A service to allow plugins to subscribe to dalamud:// URIs targeting them. Plugins will receive any URI sent to the
|
||||
/// <code>dalamud://plugin/{PLUGIN_INTERNAL_NAME}/...</code> namespace.
|
||||
/// </summary>
|
||||
public interface IPluginLinkHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// A delegate containing the received URI.
|
||||
/// </summary>
|
||||
delegate void PluginUriReceived(DalamudUri uri);
|
||||
|
||||
/// <summary>
|
||||
/// The event fired when a URI targeting this plugin is received.
|
||||
/// </summary>
|
||||
event PluginUriReceived OnUriReceived;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue