Skip to content

foliageMetrics beta ​

Function of @v12-engine/editor

ts
export declare function foliageMetrics(editor: {
    played?: GameClient;
    plays: {
        mapShown: boolean;
    };
    doc: MapEditor;
    styles: EditorFoliageStyles;
    drawing: {
        cellLayers: {
            of(layer: string): readonly unknown[];
        };
    };
}): FoliageMetric[];

What Metrics shows of grass and bushes, a row a layer drawn as grass or bushes: of the game played here, while it is shown (its screen's client.foliage(layer).stats, its world's burning cells), else of the editor's own view and the map