feat: Introduce action context builders for various turn actions

- Added `actionContextBuilder` to multiple turn action files to utilize the default action context builder.
- Implemented specific context builders for actions requiring additional context, such as war configurations, world summaries, and general statistics.
- Created new `actionContext.ts` and `actionContextHelpers.ts` files to define interfaces and helper functions for managing action contexts.
- Enhanced context handling for nation and general actions, ensuring proper data injection for turn execution.
This commit is contained in:
2026-01-03 06:28:50 +00:00
parent b628b32968
commit 4f90f50033
31 changed files with 613 additions and 429 deletions
+1
View File
@@ -1,6 +1,7 @@
export * from './definition.js';
export * from './engine.js';
export * from './turn/commandEnv.js';
export * from './turn/actionContext.js';
export * from './turn/commandModule.js';
export * from './turn/commandProfile.js';
export * from './turn/general/index.js';