Class MapLinkPayload
An SeString Payload representing an interactable map position link.
Assembly: Dalamud.dll
View Source
public class MapLinkPayload : Payload
Inheritance: System.Object
-> Dalamud.Game.Text.SeStringHandling.Payload
Properties
Type
Gets the type of this payload.
View Source
public override PayloadType Type { get; }
Map
Gets the Map specified for this map link.
View Source
[JsonIgnore]
public Map Map { get; }
TerritoryType
Gets the TerritoryType specified for this map link.
View Source
[JsonIgnore]
public TerritoryType TerritoryType { get; }
RawX
Gets the internal x-coordinate for this map position.
View Source
public int RawX { get; }
RawY
Gets the internal y-coordinate for this map position.
View Source
public int RawY { get; }
XCoord
Gets the readable x-coordinate position for this map link. This value is approximate and unrounded.
View Source
public float XCoord { get; }
YCoord
Gets the readable y-coordinate position for this map link. This value is approximate and unrounded.
View Source
[JsonIgnore]
public float YCoord { get; }
CoordinateString
Gets 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.
View Source
[JsonIgnore]
public string CoordinateString { get; }
PlaceNameRegion
Gets 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".
View Source
[JsonIgnore]
public string PlaceNameRegion { get; }
PlaceName
Gets 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".
View Source
[JsonIgnore]
public string PlaceName { get; }
DataString
Gets the data string for this map link, for use by internal game functions that take a string variant and not a binary payload.
View Source
public string DataString { get; }
Methods
ToString()
Returns a string that represents the current object.
View Source
public override string ToString()
Returns
System.String
: A string that represents the current object.### EncodeImpl()
Encodes the internal state of this payload into a byte[] suitable for sending to in-game
handlers such as the chat log.
View Source
protected override byte[] EncodeImpl()
Returns
System.Byte[]
: Encoded binary payload data suitable for use with in-game handlers.### DecodeImpl(BinaryReader, long)
Decodes a byte stream from the game into a payload object.
View Source
protected override void DecodeImpl(BinaryReader reader, long endOfStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.BinaryReader | reader | A BinaryReader containing at least all the data for this payload. |
System.Int64 | endOfStream | The location holding the end of the data for this payload. |