Skip to content

EditorRecentTiles beta ​

Class of @v12-engine/editor

ts
export declare class EditorRecentTiles

The tiles painted with last, for this game (the Terrain panel's Recent row, a quick pick): the tile of each stroke of the paint or the fill brush goes first, RECENT_TILES of them, kept in this browser across sessions and maps by the tile's id (a map lays its tiles in an order of its own). A tile the open map has not is left out of the list it gives, and kept for the maps that have it.

A part of the editor, as it gives it (editor.recentTiles)

Members ​

constructor ​

ts
constructor(host: RecentTilesHost);

Constructs a new instance of the EditorRecentTiles class

clear ​

ts
clear(): void;

Forgets the list, for this game

ids ​

ts
ids(): string[];

The ids of the tiles painted with last, the latest first, as they are kept

list ​

ts
list(): number[];

The tiles painted with last that the open map has, the latest first: by their index in its paint (brush.tile)

used ​

ts
used(tile: number): void;

A tile painted with, by its index in the map's paint: first in the list. Nothing for no paint (Natural)