Skip to main content
Version: 15.x (API 15) [Legacy]

Class SheetExtensions

Extensions for Dalamud.Excel.Sheets.

Assembly: Dalamud.dll​
Declaration
public static class SheetExtensions

Methods​

ToWorldCoordinate(Level)​

Converts the Level row into a Dalamud.Utility.WorldCoordinate.

Declaration
public static WorldCoordinate ToWorldCoordinate(this Level row)
Returns​

Dalamud.Utility.WorldCoordinate: The Dalamud.Utility.WorldCoordinate of this Level row.

Parameters​
TypeName
Dalamud.Excel.Sheets.Levelrow

ToMapCoordinate(Level)​

Converts the Level row into a Dalamud.Utility.MapCoordinate.

Declaration
public static MapCoordinate ToMapCoordinate(this Level row)
Returns​

Dalamud.Utility.MapCoordinate: The Dalamud.Utility.MapCoordinate of this Level row.

Parameters​
TypeName
Dalamud.Excel.Sheets.Levelrow

ToMapCoordX(Map, float)​

Converts a raw world X position to a user-friendly map X coordinate.

Declaration
public static uint ToMapCoordX(this Map row, float x)
Returns​

System.UInt32: The calculated map X coordinate.

Parameters​
TypeNameDescription
Dalamud.Excel.Sheets.Maprow
System.SinglexThe raw X world position.

ToMapCoordY(Map, float)​

Converts a raw world position to a user-friendly map Y coordinate.

Declaration
public static uint ToMapCoordY(this Map row, float y)
Returns​

System.UInt32: The calculated map Y coordinate.

Parameters​
TypeNameDescription
Dalamud.Excel.Sheets.Maprow
System.SingleyThe raw coordinate position representing the map's Y-axis.
Remarks​

In FFXIV's 3D coordinate system, Y represents altitude/elevation, while Z represents north-south depth.

Pass the world position's Z coordinate into this method to calculate the 2D map's Y coordinate.