diff --git a/Dalamud/Plugin/DalamudPluginInterface.cs b/Dalamud/Plugin/DalamudPluginInterface.cs index 5a2ff0421..05097b832 100644 --- a/Dalamud/Plugin/DalamudPluginInterface.cs +++ b/Dalamud/Plugin/DalamudPluginInterface.cs @@ -226,6 +226,7 @@ namespace Dalamud.Plugin /// Subscribe to an IPC message by any plugin. /// /// The action to take when a message was received. + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public void SubscribeAny(Action action) { if (this.AnyPluginIpcAction != null) @@ -239,6 +240,7 @@ namespace Dalamud.Plugin /// /// The InternalName of the plugin to subscribe to. /// The action to take when a message was received. + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public void Subscribe(string pluginName, Action action) { if (this.dalamud.PluginManager.IpcSubscriptions.Any(x => x.SourcePluginName == this.pluginName && x.SubPluginName == pluginName)) @@ -250,6 +252,7 @@ namespace Dalamud.Plugin /// /// Unsubscribe from messages from any plugin. /// + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public void UnsubscribeAny() { if (this.AnyPluginIpcAction == null) @@ -262,6 +265,7 @@ namespace Dalamud.Plugin /// Unsubscribe from messages from a plugin. /// /// The InternalName of the plugin to unsubscribe from. + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public void Unsubscribe(string pluginName) { var sub = this.dalamud.PluginManager.IpcSubscriptions.FirstOrDefault(x => x.SourcePluginName == this.pluginName && x.SubPluginName == pluginName); @@ -275,6 +279,7 @@ namespace Dalamud.Plugin /// Send a message to all subscribed plugins. /// /// The message to send. + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public void SendMessage(ExpandoObject message) { var subs = this.dalamud.PluginManager.IpcSubscriptions.Where(x => x.SubPluginName == this.pluginName); @@ -290,6 +295,7 @@ namespace Dalamud.Plugin /// The InternalName of the plugin to send the message to. /// The message to send. /// True if the corresponding plugin was present and received the message. + [Obsolete("The current IPC mechanism is obsolete and scheduled to be replaced after API level 3.")] public bool SendMessage(string pluginName, ExpandoObject message) { var (_, _, pluginInterface, _) = this.dalamud.PluginManager.Plugins.FirstOrDefault(x => x.Definition.InternalName == pluginName);