GroundLooks beta
Interface of @v12-engine/client/common
export interface GroundLooksWhat the ground is drawn with: the colour of each tile and its texture, by the tile's index in the paint
Members
cliff
cliff?: TileTexture;The rock of cliff faces. The client's when left out
cliffLooks
cliffLooks?: GroundCliffLooks;Walls of cliffs shaped their own ways, each over cliffShape field by field: by the tile on their top, and by looks painted on the map. The walls are drawn shaped where any is, cliffShape or not
cliffRepeat
cliffRepeat?: GroundRepeat;How large the rock's picture is on a face, where its look says (TileLook.scale)
cliffShape
cliffShape?: CliffShape;The walls of cliffs drawn shaped (GameView.ground.cliffShape, CliffShape): finer than the grid, curved, rough and rounded at their corners. The grid's two triangles a cell when left out
cliffStyles
cliffStyles?: Readonly<Record<string, CliffStyleDef>>;The game's own styles of the walls of cliffs, by id (GameView.ground.cliffStyles), over the client's (CLIFF_STYLES)
colors
colors: Rgb[];The first, index 0, is no paint
ground
ground?: TileTexture;The ground where there is no paint: a file drawn as it is, or a pattern made in grey and laid over the colours of its slope and height. Grass laid over them when left out
groundRepeat
groundRepeat?: GroundRepeat;How deep the unpainted ground's edge blends by height, where its look says (TileLook.blendDepth)
lookWalls
lookWalls?: {
id: number;
texture: TileTexture;
repeat?: GroundRepeat;
}[];The pictures of the looks painted on walls (MapCliffLook.rock), by the look's id: the first 15, over the walls' own where they are painted
natural
natural?: GroundColoring;The colours of unpainted ground by height and slope (GameView.ground.colors): the client's grass and rock when left out
relief
relief?: number;How deep the pictures of the ground stand out as it is lit (GameView.ground.relief): each layer's normals, from its file's normal map (<texture>_n.png) or its height (heightNormals), tilt the ground's. 0 or left out: flat, and nothing more is sampled
repeats
repeats?: GroundRepeat[];How each tile's picture lies on the ground, by the same index as textures: as large and as turned as it says
textures
textures: TileTexture[];The first is the texture of tile 1
textureSize
textureSize?: number;The side of every texture of the ground, in pixels (GameView.ground.textureSize): TEXTURE_SIZE (256) when left out. A power of two from 64 to 2048 (another is taken to the nearest)
tint
tint?: GroundTint;A tint over many cells that breaks the pictures' repeats (GameView.ground.tint, GroundTint): none when left out
transitions
transitions?: GroundTransition[];Textures along the borders of two tiles, by their index in the paint (0 is no paint)
walls
walls?: GroundWall[];The walls of cliffs of their own, by the tile on the top (TileLook.cliff, MapCliff.tiles): the rock's elsewhere