30 lines
771 B
C#
30 lines
771 B
C#
using FFXIVClientStructs.FFXIV.Client.UI.Agent;
|
|
using System.Numerics;
|
|
|
|
namespace Waypoints
|
|
{
|
|
public static class Utils
|
|
{
|
|
public static unsafe uint CurrentTerritoryId()
|
|
{
|
|
return AgentMap.Instance()->CurrentTerritoryId;
|
|
}
|
|
|
|
public static unsafe uint CurrentMapId()
|
|
{
|
|
return AgentMap.Instance()->CurrentMapId;
|
|
}
|
|
|
|
public static Vector3? CurrentPosition()
|
|
{
|
|
return Plugin.ObjectTable.LocalPlayer?.Position;
|
|
}
|
|
|
|
public static unsafe void OpenMapAt(uint territoryId, uint mapId, Vector3 position)
|
|
{
|
|
AgentMap.Instance()->SetFlagMapMarker(territoryId, mapId, position);
|
|
AgentMap.Instance()->OpenMap(mapId);
|
|
}
|
|
}
|
|
}
|