XivCommon/XivCommon/Hooks.cs

74 lines
1.6 KiB
C#
Raw Permalink Normal View History

2021-04-11 13:24:56 +00:00
using System;
2023-10-03 06:25:45 +00:00
namespace XivCommon;
/// <summary>
/// Flags for which hooks to use
/// </summary>
[Flags]
public enum Hooks {
/// <summary>
2023-10-03 06:25:45 +00:00
/// No hook.
///
/// This flag is used to disable all hooking.
/// </summary>
2023-10-03 06:25:45 +00:00
None = 0,
2021-05-23 09:43:48 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// The Tooltips hooks.
///
/// This hook is used in order to enable the tooltip events.
/// </summary>
Tooltips = 1 << 0,
2021-04-11 13:42:59 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// The BattleTalk hook.
///
/// This hook is used in order to enable the BattleTalk events.
/// </summary>
BattleTalk = 1 << 1,
2021-04-24 16:28:18 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// Hooks used for refreshing Party Finder listings.
/// </summary>
PartyFinderListings = 1 << 2,
2021-04-24 16:28:18 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// Hooks used for Party Finder join events.
/// </summary>
PartyFinderJoins = 1 << 3,
2021-04-18 03:28:20 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// All Party Finder hooks.
///
/// This hook is used in order to enable all Party Finder functions.
/// </summary>
PartyFinder = PartyFinderListings | PartyFinderJoins,
2023-10-03 06:25:45 +00:00
/// <summary>
/// The Talk hooks.
///
/// This hook is used in order to enable the Talk events.
/// </summary>
Talk = 1 << 4,
2021-04-27 19:48:44 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// The chat bubbles hooks.
///
/// This hook is used in order to enable the chat bubbles events.
/// </summary>
ChatBubbles = 1 << 5,
2023-10-03 06:25:45 +00:00
// 1 << 6 used to be ContextMenu
2021-04-11 13:24:56 +00:00
2023-10-03 06:25:45 +00:00
/// <summary>
/// The name plate hooks.
///
/// This hook is used in order to enable name plate functions.
/// </summary>
NamePlates = 1 << 7,
2021-04-11 13:24:56 +00:00
}
2023-10-03 06:25:45 +00:00
internal static class HooksExt {
internal const Hooks DefaultHooks = Hooks.None;
}