auto-git:
[change] src/core/terrain-brush.ts
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import type { Terrain } from "../document/terrains";
|
|
||||||
import { TERRAIN_LAYER_COUNT } from "../document/terrains";
|
import { TERRAIN_LAYER_COUNT } from "../document/terrains";
|
||||||
|
|
||||||
export type TerrainBrushTool =
|
export type TerrainBrushTool =
|
||||||
@@ -29,8 +28,21 @@ export type ArmedTerrainBrushState =
|
|||||||
| ArmedTerrainSculptBrushState
|
| ArmedTerrainSculptBrushState
|
||||||
| ArmedTerrainPaintBrushState;
|
| ArmedTerrainPaintBrushState;
|
||||||
|
|
||||||
|
export interface TerrainSampleValuePatch {
|
||||||
|
index: number;
|
||||||
|
before: number;
|
||||||
|
after: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface TerrainBrushPatch {
|
||||||
|
terrainId: string;
|
||||||
|
heightSamples: TerrainSampleValuePatch[];
|
||||||
|
paintWeights: TerrainSampleValuePatch[];
|
||||||
|
}
|
||||||
|
|
||||||
export interface TerrainBrushStrokeCommit {
|
export interface TerrainBrushStrokeCommit {
|
||||||
terrain: Terrain;
|
terrainId: string;
|
||||||
|
patch: TerrainBrushPatch;
|
||||||
commandLabel: string;
|
commandLabel: string;
|
||||||
tool: TerrainBrushTool;
|
tool: TerrainBrushTool;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user