Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/editor/panels/AIGeneratePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,22 @@ interface MapPreset {
category: string;
description: string;
prompt: string;
suggestedSettings?: Partial<MapGenerationSettings>;
suggestedSettings?: {
playerCount?: number;
mapSize?: string;
biome?: string;
includeWater?: boolean;
includeForests?: boolean;
islandMap?: boolean;
};
}

// ============================================================================
// CONFIG DATA
// ============================================================================

const PRESET_CATEGORIES: PresetCategory[] = mapPresetsConfig.categories;
const MAP_PRESETS: MapPreset[] = mapPresetsConfig.presets;
const MAP_PRESETS: MapPreset[] = mapPresetsConfig.presets as MapPreset[];

function getPresetsByCategory(categoryId: string): MapPreset[] {
return MAP_PRESETS.filter((p) => p.category === categoryId);
Expand Down
Loading