MapCliff beta
Interface of @v12-engine/client
export interface MapCliffThe faces of a map's cliffs, over the game's rock (MapEnvironment.cliff): a picture in textures/ or a pattern made in code in a colour, as large, adjusted and seamless as a ground can be
Members
adjust
adjust?: MapTile['adjust'];How the picture is changed as it is drawn (MapTile.adjust)
color
color?: Rgb;The colour a pattern is made in; the client's when left out
looks
looks?: MapCliffLook[];Looks of the walls of their own, painted where they are (MapCliffLook): the walls of the cells whose value in the map's layer CLIFF_LOOKS_LAYER (GameMap.cells.cliffLooks) is a look's id are shaped as it says
pattern
pattern?: string;A pattern of the client's or the game's own by id that makes the face in code, where there is no picture
scale
scale?: number;How many cells the picture covers across
seamless
seamless?: MapTile['seamless'];Whether the picture is made to repeat without a seam (MapTile.seamless)
shape
shape?: CliffShape | false;How this map's walls of cliffs are shaped, over the game's (GameView.ground.cliffShape, field by field: its style and the style's parameters, how deep, how fine, its rocks); false draws them the grid's way here (smooth, where some walls have a shape of their own). The game's when left out. A tile's own (tiles, TileLook.cliffShape) goes over it under that tile, and a look painted on the walls (looks) over both
texture
texture?: string;A picture of the cliff face by its path in textures/
tiles
tiles?: Record<string, Omit<MapCliff, 'tiles' | 'looks'>>;The walls of the cliffs whose top is painted with a tile, by its id (the game's or the map's own), field by field over the tile's own (TileLook.cliff) or over these: rock under grass, ice under snow