CellLayerView beta
Interface of @v12-engine/client
ts
export interface CellLayerViewA part of a layer's look on the renderer (the client's CellLayerView)
Members
dispose
ts
dispose(): void;Lets go of what it drew with
disturb
ts
disturb?(x: number, z: number, strength: number): void;Stirs it at a place (a blast in the grass), 1 the strongest
drawn
ts
readonly drawn?: number;How many things it draws now
frame
ts
frame?(frame: CellLayerFrame): void;Moves with the frame: the wind, the walkers, the camera
lay
ts
lay(changed?: readonly number[]): void;Lays its look over the cells: all of them, or those changed (their indices)
layState
ts
layState?(changed?: readonly number[], over?: number, seen?: boolean): void;Lays what the cells' state says (burning, burnt), over so many seconds, for the cells changed or all; seen whether the player sees them
setDetail
ts
setDetail?(amount: number): void;How much of it is drawn, from 0 to 1, as the player's Detail says