Add presets (table/chair), object count, near_object condition, optimization locks placed objects and randomizes remaining
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user