699d4ede1d
Add .prettierrc.json, .markdownlint.json, .yamllint.yaml, .gitattributes Run CSharpier, Prettier and markdownlint across the entire codebase. No logic changes — formatting, using order and line endings only.
48 lines
1.3 KiB
C#
Executable File
48 lines
1.3 KiB
C#
Executable File
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
|
using FFXIVClientStructs.FFXIV.Client.UI.Info;
|
|
using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
|
using HellionChat.Util;
|
|
|
|
namespace HellionChat.GameFunctions;
|
|
|
|
internal sealed unsafe class Context
|
|
{
|
|
internal static void InviteToNoviceNetwork(string name, ushort world)
|
|
{
|
|
// can specify content id if we have it, but there's no need
|
|
InfoProxyNoviceNetwork
|
|
.Instance()
|
|
->InviteToNoviceNetwork(0, 0, world, name.ToTerminatedBytes());
|
|
}
|
|
|
|
internal static void TryOn(uint itemId, byte stainId)
|
|
{
|
|
AgentTryon.TryOn(0xFF, itemId, stainId);
|
|
}
|
|
|
|
internal static void LinkItem(uint itemId)
|
|
{
|
|
AgentChatLog.Instance()->LinkItem(itemId);
|
|
}
|
|
|
|
internal static void LinkStatus(uint statusId)
|
|
{
|
|
AgentChatLog.Instance()->ContextStatusId = statusId;
|
|
}
|
|
|
|
internal static void OpenItemComparison(uint itemId)
|
|
{
|
|
AgentItemComp.Instance()->CompareItem(0x4D, itemId, 0, 0);
|
|
}
|
|
|
|
internal static void SearchForRecipesUsingItem(uint itemId)
|
|
{
|
|
AgentRecipeProductList.Instance()->SearchForRecipesUsingItem(itemId);
|
|
}
|
|
|
|
internal static void SearchForItem(uint itemId)
|
|
{
|
|
ItemFinderModule.Instance()->SearchForItem(itemId);
|
|
}
|
|
}
|