UNPKG

@logic-pad/core

Version:
27 lines (26 loc) 736 B
import { Color } from './primitives.js'; export default class TileData { readonly exists: boolean; readonly fixed: boolean; readonly color: Color; constructor(exists: boolean, fixed: boolean, color: Color); /** * Create a gray tile. */ static empty(): TileData; /** * Create a non-existent tile. */ static doesNotExist(): TileData; copyWith({ exists, fixed, color, }: { exists?: boolean; fixed?: boolean; color?: Color; }): this; withExists(exists: boolean): this; withFixed(fixed: boolean): this; withColor(color: Color): this; get isFixed(): boolean; equals(other: TileData): boolean; static create(char: string): TileData; }