# Game Orchestrator

Serveur central orchestrant le système modulaire et gérant les clients.

## Architecture
- **Module Coordination**: Orchestration des modules via CoordinationModule
- **Client Management**: REST API pour smart clients HTML
- **Module Distribution**: Déploiement modules local/distant selon configuration
- **Performance**: 60fps tick global, modules autonomes

## Responsabilités
- **API Gateway**: Interface REST pour clients HTML
- **Module Lifecycle**: Start/stop/restart modules selon besoins
- **Session Management**: Gestion sessions joueurs multiples
- **Configuration Sync**: Synchronisation gameconfig.json entre modules

## Module Communication
- **Production Modules**: Factory state, belt optimization
- **Logistic Modules**: Transport routes, convoys
- **Economy Modules**: Market prices, supply/demand
- **Designer Modules**: Vehicle designs, blueprints
- **Company Modules**: Company state, diplomacy
- **Map Modules**: Terrain data, chunks, FOW
- **War Modules**: Combat results, unit positions
- **Operation Modules**: Strategic orders, AI decisions
- **Intelligence Modules**: Metrics, reconnaissance data
- **Event Modules**: 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