Skip to content

tileColors beta ​

Function of @v12-engine/client/common

ts
export declare function tileColors(registry: Registry, looks?: Readonly<Record<string, TileLook>>, tileset?: readonly string[]): Rgb[];

The colour of each tile of a game, by its index in the paint (0, no paint, has none): the game's own look, the client's for that id, or one that says there is none. tileset is the map's, for an editor, whose paint can hold tiles the game does not have; the game's own list when left out