🏗️ Created professional C++ architecture: - Factory Engine: Factorio-like production simulation - Economy Engine: Global markets and pricing algorithms - War Engine: Multi-chunk combat and auto-battler - Designer Engine: Vehicle conception (1-2 designs/tick globally) - MacroEntity Engine: Companies, diplomacy, administration points - Map Engine: Procedural generation (218 elements, FOW chunk-based) - Intelligence Engine: Metrics collection (3.1GB adaptive scaling) - Operation Engine: Strategic AI generals with ML adaptation - Logistic Engine: Supply chains and convoy management - Event Engine: Breakthrough system and global events ✅ Each engine includes: - Professional header files with complete interfaces - Autonomous threading and lifecycle management - Inter-engine communication patterns - Performance monitoring capabilities - Organized namespaces (Warfactory::Engine) 🔧 Added .gitignore for C++ development 📦 Added shared/ module for common types 🚀 Ready for CMake setup and implementation
41 lines
1.7 KiB
Markdown
41 lines
1.7 KiB
Markdown
# Game Orchestrator
|
|
|
|
Serveur central orchestrant les 10 engines autonomes et gérant les clients.
|
|
|
|
## Architecture
|
|
- **Engine Coordination**: Orchestration des 10 engines autonomes
|
|
- **Client Management**: REST API pour smart clients HTML
|
|
- **Redis Coordination**: Communication inter-engines via Redis
|
|
- **Performance**: 60fps tick global, engines autonomes
|
|
|
|
## Responsabilités
|
|
- **API Gateway**: Interface REST pour clients HTML
|
|
- **Engine Lifecycle**: Start/stop/restart engines selon besoins
|
|
- **Session Management**: Gestion sessions joueurs multiples
|
|
- **Data Coordination**: Synchronisation état entre engines
|
|
|
|
## Engine Communication
|
|
- **Factory Engine**: Production data, factory state
|
|
- **Logistic Engine**: Transport routes, convoys
|
|
- **Economy Engine**: Market prices, supply/demand
|
|
- **Designer Engine**: Vehicle designs, blueprints
|
|
- **MacroEntity Engine**: Company state, diplomacy
|
|
- **Map Engine**: Terrain data, chunks, FOW
|
|
- **War Engine**: Combat results, unit positions
|
|
- **Operation Engine**: Strategic orders, AI decisions
|
|
- **Intelligence Engine**: Metrics, reconnaissance data
|
|
- **Event Engine**: Global events, breakthroughs
|
|
|
|
## API Endpoints
|
|
- `/api/map/*` - Map data, chunks, navigation
|
|
- `/api/factory/*` - Production, factory management
|
|
- `/api/vehicle/*` - Design interface, blueprints
|
|
- `/api/combat/*` - Combat oversight, orders
|
|
- `/api/intel/*` - Reconnaissance, metrics
|
|
- `/api/diplomacy/*` - Relations, administration
|
|
|
|
## Technical Stack
|
|
- **Backend**: C++/Node.js pour performance
|
|
- **Database**: Redis pour coordination, PostgreSQL pour persistence
|
|
- **Communication**: REST API, WebSocket pour real-time updates
|
|
- **Scaling**: Horizontal scaling par engine type |