mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-28 19:39:19 +01:00
IPC with cross-plugin objects.
This commit is contained in:
parent
49345847a5
commit
e9ebee4c65
17 changed files with 372 additions and 252 deletions
|
|
@ -26,7 +26,7 @@ using Dalamud.Interface.Internal.Notifications;
|
|||
using Dalamud.Interface.Windowing;
|
||||
using Dalamud.Memory;
|
||||
using Dalamud.Plugin;
|
||||
using Dalamud.Plugin.Internal;
|
||||
using Dalamud.Plugin.Ipc.Internal;
|
||||
using Dalamud.Utility;
|
||||
using ImGuiNET;
|
||||
using ImGuiScene;
|
||||
|
|
@ -617,7 +617,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
{
|
||||
if (this.ipcPub == null)
|
||||
{
|
||||
this.ipcPub = Service<CallGate>.Get().GetIpcPubSub<string, string>("dataDemo1");
|
||||
this.ipcPub = new CallGatePubSub<string, string>("dataDemo1");
|
||||
|
||||
this.ipcPub.RegisterAction((msg) =>
|
||||
{
|
||||
|
|
@ -633,7 +633,7 @@ namespace Dalamud.Interface.Internal.Windows
|
|||
|
||||
if (this.ipcSub == null)
|
||||
{
|
||||
this.ipcSub = Service<CallGate>.Get().GetIpcPubSub<string, string>("dataDemo1");
|
||||
this.ipcSub = new CallGatePubSub<string, string>("dataDemo1");
|
||||
this.ipcSub.Subscribe((msg) =>
|
||||
{
|
||||
Log.Information("PONG1");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue