MapGroundLayer beta
Interface of @v12-engine/client
export interface MapGroundLayerA layer of a ground (MapTile.layers, TileLook.layers): a pattern made in code or a picture, laid over what is under it as it says, as much as it says, where its mask says
Members
amount
amount?: number;How much of it, 0..1: all of it when left out
blend
blend?: 'over' | 'multiply' | 'add' | 'lighten' | 'darken';How it is laid over what is under it: as it is (over, when left out), multiplied (multiply: darker, its own light and dark over the colour under it), added (add: lighter), or the lighter or darker of the two at each pixel
mask
mask?: {
kind: 'everywhere';
} | {
kind: 'patches';
seed?: number;
balance?: number;
softness?: number;
patches?: number;
} | {
kind: 'shade';
from: number;
to: number;
};Where it is laid: everywhere (when left out); in patches of a noise, as a mix has them (patches: how much of the picture, how soft their edges, about how many across, another way of them); or where what is under it is between two lightnesses, 0..1 (shade: in the dark of cobbles' seams, on the light of their tops)
pattern
pattern?: {
kind: string;
color: Rgb;
seed?: number;
params?: Record<string, number>;
};Made in code: a pattern of the client's or of the game's own by id, in a colour, with a seed and its parameters
repeat
repeat?: number;How many times its picture repeats across the ground's: 1 when left out, more for a finer layer
texture
texture?: string;Or a picture, by its path in textures/ (the map's own files first, see Assets)