Class SheetExtensions
Extensions for Dalamud.Excel.Sheets.
Assembly: Dalamud.dll
public static class SheetExtensions
Methods
ToWorldCoordinate(Level)
Converts the Level row into a Dalamud.Utility.WorldCoordinate.
public static WorldCoordinate ToWorldCoordinate(this Level row)
Returns
Dalamud.Utility.WorldCoordinate: The Dalamud.Utility.WorldCoordinate of this Level row.
Parameters
| Type | Name |
|---|---|
Dalamud.Excel.Sheets.Level | row |
ToMapCoordinate(Level)
Converts the Level row into a Dalamud.Utility.MapCoordinate.
public static MapCoordinate ToMapCoordinate(this Level row)
Returns
Dalamud.Utility.MapCoordinate: The Dalamud.Utility.MapCoordinate of this Level row.
Parameters
| Type | Name |
|---|---|
Dalamud.Excel.Sheets.Level | row |
ToMapCoordX(Map, float)
Converts a raw world X position to a user-friendly map X coordinate.
public static uint ToMapCoordX(this Map row, float x)
Returns
System.UInt32: The calculated map X coordinate.
Parameters
| Type | Name | Description |
|---|---|---|
Dalamud.Excel.Sheets.Map | row | |
System.Single | x | The raw X world position. |
ToMapCoordY(Map, float)
Converts a raw world position to a user-friendly map Y coordinate.
public static uint ToMapCoordY(this Map row, float y)
Returns
System.UInt32: The calculated map Y coordinate.
Parameters
| Type | Name | Description |
|---|---|---|
Dalamud.Excel.Sheets.Map | row | |
System.Single | y | The 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.