add config refactor structure

This commit is contained in:
user
2025-07-12 17:33:17 -04:00
parent 78d6209818
commit e15b5db7ff
32 changed files with 481 additions and 105 deletions

33
src/core/Config.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include <string>
struct AquariumConfig {
// Entity spawn settings
int initial_fish_count = -1; // -1 means auto-calculate
int initial_seaweed_count = -1; // -1 means auto-calculate
int max_bubbles = 50;
// Animation settings
int frame_delay_ms = 100;
bool enable_big_entities = true;
bool enable_bubbles = true;
// Visual settings
bool use_colors = true;
bool use_bold = true;
// Spawn rates (lower = more frequent)
int fish_bubble_rate = 10; // 1 in N chance per frame
int big_entity_spawn_delay = 100; // frames between big entities
// Performance settings
bool optimize_rendering = true;
int max_entities = 200;
// Debug settings
bool show_fps = false;
bool show_entity_count = false;
bool debug_mode = false;
};
extern AquariumConfig g_config;