qstbak/LLib/LLib.GameData/GrandCompanyHelper.cs
2026-08-17 20:29:32 +10:00

32 lines
606 B
C#

using FFXIVClientStructs.FFXIV.Client.Game.UI;
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
namespace LLib.GameData;
public static class GrandCompanyHelper
{
public static GrandCompany GetGrandCompany()
{
return (GrandCompany)GetGrandCompanyId();
}
public unsafe static byte GetGrandCompanyId()
{
PlayerState* ptr = PlayerState.Instance();
if (ptr == null)
{
return 0;
}
return ptr->GrandCompany;
}
public unsafe static byte GetGrandCompanyRank()
{
PlayerState* ptr = PlayerState.Instance();
if (ptr == null)
{
return 0;
}
return ptr->GetGrandCompanyRank();
}
}