Struct WorldCoordinate
Represents world-space coordinate within a specific territory, map, and instance.
Assembly: Dalamud.dll
public struct WorldCoordinate
Properties
TerritoryId
Gets or sets the TerritoryType RowId.
public uint TerritoryId { readonly get; set; }
MapId
Gets or sets the Map RowId.
If set to 0, falls back to Dalamud.Excel.Sheets.TerritoryType.Map from the given Dalamud.Utility.WorldCoordinate.TerritoryId.
public uint MapId { readonly get; set; }
X
Gets or sets the world X coordinate.
public float X { readonly get; set; }
Y
Gets or sets the world Y coordinate. This is the altitude.
public float Y { readonly get; set; }
Z
Gets or sets the world Z coordinate.
public float Z { readonly get; set; }
InstanceId
Gets or sets the Instance Id.
public uint InstanceId { readonly get; set; }
Methods
ToMapCoordinate()
Converts this world-space coordinate into the corresponding map-space coordinate.
public MapCoordinate ToMapCoordinate()
Returns
Dalamud.Utility.MapCoordinate: A Dalamud.Utility.MapCoordinate representing the equivalent position on the map, or a default value if the map data cannot be retrieved.
ToMapLink()
Creates a ReadOnlySeString representing an entire macros chain that can be used to link a map position in the chat log.
public ReadOnlySeString ToMapLink()
Returns
Lumina.Text.ReadOnly.ReadOnlySeString: A ReadOnlySeString containing all of the macros necessary to display a map link in the chat log.