Add presets (table/chair), object count, near_object condition, optimization locks placed objects and randomizes remaining

This commit is contained in:
2026-10-17 19:52:52 -04:00
parent a708a0cfe5
commit ced33b672f
6 changed files with 172 additions and 16 deletions
+11
View File
@@ -26,6 +26,7 @@ export type ConditionKind =
| 'walk_to_and_sit'
| 'around_open_area'
| 'near_entrance'
| 'near_object'
| 'not_blocking_path'
| 'accessible'
| 'open_circulation';
@@ -87,8 +88,18 @@ export interface LayoutEvaluation {
penalty: number;
}
export interface FurniturePreset {
id: string;
name: string;
shape: Omit<ShapeData, 'x' | 'y'>;
conditions: ConditionSpec[];
color?: string;
}
export interface LayoutState {
room: RoomConfig;
entrance: Entrance | null;
furniture: FurnitureConfig[];
presets?: FurniturePreset[];
objectCount?: number;
}