Class PluginMapMarker
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
A map marker owned by a plugin.
public sealed record PluginMapMarker : IEquatable<PluginMapMarker>
- Inheritance
-
PluginMapMarker
- Implements
- Inherited Members
Constructors
PluginMapMarker(string, PluginMapPoint, string?, string?, string?, bool)
A map marker owned by a plugin.
public PluginMapMarker(string Id, PluginMapPoint Position, string? Label = null, string? IconId = null, string? Tooltip = null, bool IsSelected = false)
Parameters
IdstringThe marker's name, unique on its map. Input about the marker names it by this.
PositionPluginMapPointWhere in the world the marker stands.
LabelstringText shown beside the marker, or null for none.
IconIdstringThe id of an icon among the plugin's resources, or null for the host's default marker.
TooltipstringText shown when the pointer rests on the marker, or null for none.
IsSelectedboolWhether the marker is drawn as the selected one.
Properties
IconId
The id of an icon among the plugin's resources, or null for the host's default marker.
public string? IconId { get; init; }
Property Value
Id
The marker's name, unique on its map. Input about the marker names it by this.
public string Id { get; init; }
Property Value
IsSelected
Whether the marker is drawn as the selected one.
public bool IsSelected { get; init; }
Property Value
Label
Text shown beside the marker, or null for none.
public string? Label { get; init; }
Property Value
Position
Where in the world the marker stands.
public PluginMapPoint Position { get; init; }
Property Value
Tooltip
Text shown when the pointer rests on the marker, or null for none.
public string? Tooltip { get; init; }