Class MapLinkPayload
An SeString Payload representing an interactable map position link.
Inherited Members
Namespace: Dalamud.Game.Chat.SeStringHandling.Payloads
Assembly: Dalamud.dll
Syntax
public class MapLinkPayload : Payload
Constructors
| Improve this Doc View SourceMapLinkPayload(DataManager, UInt32, UInt32, Int32, Int32)
Creates an interactable MapLinkPayload from a raw position.
Declaration
public MapLinkPayload(DataManager data, uint territoryTypeId, uint mapId, int rawX, int rawY)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManager | data | DataManager instance needed to resolve game data. |
| System.UInt32 | territoryTypeId | The id of the TerritoryType entry for this link. |
| System.UInt32 | mapId | The id of the Map entry for this link. |
| System.Int32 | rawX | The internal raw x-coordinate for this link. |
| System.Int32 | rawY | The internal raw y-coordinate for this link. |
MapLinkPayload(DataManager, UInt32, UInt32, Single, Single, Single)
Creates an interactable MapLinkPayload from a human-readable position.
Declaration
public MapLinkPayload(DataManager data, uint territoryTypeId, uint mapId, float niceXCoord, float niceYCoord, float fudgeFactor = 0.05F)
Parameters
| Type | Name | Description |
|---|---|---|
| DataManager | data | DataManager instance needed to resolve game data. |
| System.UInt32 | territoryTypeId | The id of the TerritoryType entry for this link. |
| System.UInt32 | mapId | The id of the Map entry for this link. |
| System.Single | niceXCoord | The human-readable x-coordinate for this link. |
| System.Single | niceYCoord | The human-readable y-coordinate for this link. |
| System.Single | fudgeFactor | An optional offset to account for rounding and truncation errors; it is best to leave this untouched in most cases. |
Properties
| Improve this Doc View SourceCoordinateString
The printable map coordinates for this link. This value tries to match the in-game printable text as closely as possible but is an approximation and may be slightly off for some positions.
Declaration
[JsonIgnore]
public string CoordinateString { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
DataString
The data string for this map link, for use by internal game functions that take a string variant and not a binary payload.
Declaration
public string DataString { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Map
The Map specified for this map link.
Declaration
[JsonIgnore]
public Map Map { get; }
Property Value
| Type | Description |
|---|---|
| Lumina.Excel.GeneratedSheets.Map |
Remarks
Value is evaluated lazily and cached.
PlaceName
The place name for this map link. This corresponds to the lower zone name found in the actual in-game map UI. eg, "Limsa Lominsa Upper Decks"
Declaration
[JsonIgnore]
public string PlaceName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
PlaceNameRegion
The region name for this map link. This corresponds to the upper zone name found in the actual in-game map UI. eg, "La Noscea"
Declaration
[JsonIgnore]
public string PlaceNameRegion { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RawX
The internal x-coordinate for this map position.
Declaration
public int RawX { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
RawY
The internal y-coordinate for this map position.
Declaration
public int RawY { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
TerritoryType
The TerritoryType specified for this map link.
Declaration
[JsonIgnore]
public TerritoryType TerritoryType { get; }
Property Value
| Type | Description |
|---|---|
| Lumina.Excel.GeneratedSheets.TerritoryType |
Remarks
Value is evaluated lazily and cached.
Type
Declaration
public override PayloadType Type { get; }
Property Value
| Type | Description |
|---|---|
| PayloadType |
Overrides
| Improve this Doc View SourceXCoord
The readable x-coordinate position for this map link. This value is approximate and unrounded.
Declaration
public float XCoord { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
YCoord
The readable y-coordinate position for this map link. This value is approximate and unrounded.
Declaration
[JsonIgnore]
public float YCoord { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
| Improve this Doc View SourceDecodeImpl(BinaryReader, Int64)
Declaration
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IO.BinaryReader | reader | |
| System.Int64 | endOfStream |
Overrides
| Improve this Doc View SourceEncodeImpl()
Declaration
protected override byte[] EncodeImpl()
Returns
| Type | Description |
|---|---|
| System.Byte[] |
Overrides
| Improve this Doc View SourceGetMarkerForIntegerBytes(Byte[])
Declaration
protected override byte GetMarkerForIntegerBytes(byte[] bytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | bytes |
Returns
| Type | Description |
|---|---|
| System.Byte |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |