project-mobile-command/config/train.json
StillHammer 0953451fea Implement 7 modules: 4 core (game-agnostic) + 3 MC-specific
Core Modules (game-agnostic, reusable for WarFactory):
- ResourceModule: Inventory, crafting system (465 lines)
- StorageModule: Save/load with pub/sub state collection (424 lines)
- CombatModule: Combat resolver, damage/armor/morale (580 lines)
- EventModule: JSON event scripting with choices/outcomes (651 lines)

MC-Specific Modules:
- GameModule v2: State machine + event subscriptions (updated)
- TrainBuilderModule: 3 wagons, 2-axis balance, performance malus (530 lines)
- ExpeditionModule: A→B expeditions, team management, events integration (641 lines)

Features:
- All modules hot-reload compatible (state preservation)
- Pure pub/sub architecture (zero direct coupling)
- 7 config files (resources, storage, combat, events, train, expeditions)
- 7 test suites (GameModuleTest: 12/12 PASSED)
- CMakeLists.txt updated for all modules + tests

Total: ~3,500 lines of production code + comprehensive tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-02 16:40:54 +08:00

45 lines
747 B
JSON

{
"wagons": {
"locomotive": {
"type": "locomotive",
"health": 100,
"armor": 50,
"weight": 20000,
"capacity": 0,
"position": {
"x": 0,
"y": 0,
"z": 0
}
},
"cargo_1": {
"type": "cargo",
"health": 80,
"armor": 30,
"weight": 5000,
"capacity": 10000,
"position": {
"x": -5,
"y": 0,
"z": 0
}
},
"workshop_1": {
"type": "workshop",
"health": 70,
"armor": 20,
"weight": 8000,
"capacity": 5000,
"position": {
"x": 5,
"y": 0,
"z": 0
}
}
},
"balanceThresholds": {
"lateral_warning": 0.2,
"longitudinal_warning": 0.3
}
}