update 14
This commit is contained in:
1 parent
e0ddd32744
commit
da592f9860
15 files changed
+261
-286
No files matched your search
@@ -0,0 +1,29 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user