/// <summary>
 /// Subscribe to FCNameColor plugin methods.
 /// </summary>
 public void Subscribe()
 {
     try
     {
         this.consumerApiVersion =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string>("FCNameColor.APIVersion");
         this.consumerGetLocalPlayers =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <IEnumerable <string> >(
                 "FCNameColor.GetLocalPlayers");
         this.consumerGetPlayerFCs =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <IEnumerable <string> >(
                 "FCNameColor.GetPlayerFCs");
         this.consumerGetFCMembers =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, IEnumerable <string> >(
                 "FCNameColor.GetFCMembers");
         this.consumerGetIgnoredPlayers =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <IEnumerable <string> >(
                 "FCNameColor.GetIgnoredPlayers");
         this.consumerAddPlayerToIgnoredPlayers =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, string, object>(
                 "FCNameColor.AddPlayerToIgnoredPlayers");
         this.consumerRemovePlayerFromIgnoredPlayers =
             PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, object>(
                 "FCNameColor.RemovePlayerFromIgnoredPlayers");
     }
     catch (Exception ex)
     {
         Logger.LogDebug($"Failed to subscribe to FCNameColor.:\n{ex}");
     }
 }
Example #2
0
 public IpcManager()
 {
     wwIsInQueue        = RichPresencePlugin.DalamudPluginInterface.GetIpcSubscriber <bool>("Waitingway.IsInQueue");
     wwGetQueueType     = RichPresencePlugin.DalamudPluginInterface.GetIpcSubscriber <int>("Waitingway.GetQueueType");
     wwGetQueuePosition =
         RichPresencePlugin.DalamudPluginInterface.GetIpcSubscriber <int>("Waitingway.GetQueuePosition");
     wwGetQueueEstimate =
         RichPresencePlugin.DalamudPluginInterface.GetIpcSubscriber <TimeSpan?>("Waitingway.GetQueueEstimate");
 }
Example #3
0
 /// <summary>
 /// Subscribe to DiscordBridge plugin methods.
 /// </summary>
 public void Subscribe()
 {
     try
     {
         this.consumerApiVersion =
             KapturePlugin.PluginInterface.GetIpcSubscriber <string>("DiscordBridge.APIVersion");
         this.consumerSendMessage =
             KapturePlugin.PluginInterface.GetIpcSubscriber <string, string, string, object>(
                 "DiscordBridge.SendMessage");
     }
     catch (Exception ex)
     {
         Logger.LogDebug($"Failed to subscribe to DiscordBridge.:\n{ex}");
     }
 }
Example #4
0
        public static void Initialize()
        {
            qolBarGetIPCVersionSubscriber = DalamudApi.PluginInterface.GetIpcSubscriber <int>("QoLBar.GetIPCVersion");
            if (QoLBarIPCVersion != 1)
            {
                return;
            }

            qolBarGetVersionProvider          = DalamudApi.PluginInterface.GetIpcSubscriber <string>("QoLBar.GetVersion");
            qolBarGetConditionSetsProvider    = DalamudApi.PluginInterface.GetIpcSubscriber <string[]>("QoLBar.GetConditionSets");
            qolBarCheckConditionSetProvider   = DalamudApi.PluginInterface.GetIpcSubscriber <int, bool>("QoLBar.CheckConditionSet");
            qolBarMovedConditionSetProvider   = DalamudApi.PluginInterface.GetIpcSubscriber <int, int, object>("QoLBar.MovedConditionSet");
            qolBarRemovedConditionSetProvider = DalamudApi.PluginInterface.GetIpcSubscriber <int, object>("QoLBar.RemovedConditionSet");

            qolBarMovedConditionSetProvider.Subscribe(OnMovedConditionSet);
            qolBarRemovedConditionSetProvider.Subscribe(OnRemovedConditionSet);

            QoLBarEnabled = true;
        }
Example #5
0
        /// <summary>
        /// Subscribe to visibility plugin methods.
        /// </summary>
        public void Subscribe()
        {
            try
            {
                this.consumerApiVersion =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string>("Visibility.ApiVersion");

                this.consumerGetVoidListEntries =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <IEnumerable <string> >(
                        "Visibility.GetVoidListEntries");

                this.consumerAddToVoidList =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, uint, string, object>(
                        "Visibility.AddToVoidList");

                this.consumerRemoveFromVoidList =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, uint, object>(
                        "Visibility.RemoveFromVoidList");

                this.consumerGetWhiteListEntries =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <IEnumerable <string> >(
                        "Visibility.GetWhitelistEntries");

                this.consumerAddToWhiteList =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, uint, string, object>(
                        "Visibility.AddToWhitelist");

                this.consumerRemoveFromWhiteList =
                    PlayerTrackPlugin.PluginInterface.GetIpcSubscriber <string, uint, object>(
                        "Visibility.RemoveFromWhitelist");
            }
            catch (Exception ex)
            {
                Logger.LogDebug($"Failed to subscribe to Visibility.:\n{ex}");
            }
        }