Skip to content
ChartForgeX
Class

ChartTileMapDefinition

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

Describes reusable tile-map geometry.

Inheritance

  • object
  • ChartTileMapDefinition

Usage

Explore 7 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 4

Constructors

public ChartTileMapDefinition(string id, string name, IEnumerable<ChartTileMapRegion> regions) #

Initializes a new instance of the ChartTileMapDefinition class.

Parameters

id string required
The stable map identifier.
name string required
The display name.
regions System.Collections.Generic.IEnumerable<ChartForgeX.Core.ChartTileMapRegion> required
The tile regions.

Methods

public bool TryResolveRegion(string region, out string code) #

Resolves a caller-provided region code or alias to the canonical region code.

Parameters

region string required
The code, name, or alias to resolve.
code string required
The canonical region code.

Returns

bool true when the region can be resolved; otherwise false.

Properties

public string Id { get; } #

Gets the stable map identifier.

public string Name { get; } #

Gets the display name of the tile map.

public int ColumnCount { get; } #

Gets the number of occupied tile columns.

public int RowCount { get; } #

Gets the number of occupied tile rows.

public IReadOnlyList<ChartTileMapRegion> Regions { get; } #

Gets the drawable regions.