Skip to content

TilePointOfInterest ​

Namespace: Hex1b.Data

Assembly: Hex1b.dll

Represents a point of interest on a tile map, displayed as an icon at specific tile coordinates.

csharp
public record TilePointOfInterest : IEquatable<TilePointOfInterest>

Inheritance ​

Object → TilePointOfInterest

Implements ​

Constructors ​

TilePointOfInterest(double, double, string, string?, object?) ​

Represents a point of interest on a tile map, displayed as an icon at specific tile coordinates.

Parameters:

  • X (Double): The X coordinate in tile space.
  • Y (Double): The Y coordinate in tile space.
  • Icon (String): The icon character or string to display (e.g., "📍", "🏠", "▶").
  • Label (String): An optional text label displayed near the icon.
  • Tag (Object): Optional user data associated with this point of interest.
csharp
public TilePointOfInterest(double X, double Y, string Icon, string? Label = null, object? Tag = null)

Properties ​

Icon ​

The icon character or string to display (e.g., "📍", "🏠", "▶").

Returns: String

csharp
public string Icon { get; init; }

Label ​

An optional text label displayed near the icon.

Returns: String

csharp
public string? Label { get; init; }

Tag ​

Optional user data associated with this point of interest.

Returns: Object

csharp
public object? Tag { get; init; }

X ​

The X coordinate in tile space.

Returns: Double

csharp
public double X { get; init; }

Y ​

The Y coordinate in tile space.

Returns: Double

csharp
public double Y { get; init; }

Released under the MIT License.