feat(content): add action story hints and merge GameContent

This commit is contained in:
ginnoir
2026-06-11 18:50:01 -05:00
parent a66a7db066
commit c7d1f3f51b
4 changed files with 41 additions and 3 deletions
+8 -3
View File
@@ -1,7 +1,12 @@
import { actionDefs, resourceDefs } from './definitions';
import { buildContent } from './schema';
import { buildContent, type Content } from './schema';
import { buildStoryContent, type StoryContent } from './storySchema';
import { storyNodeDefs } from './story';
/** The validated, indexed content the engine and view consume. */
export const content = buildContent({ resources: resourceDefs, actions: actionDefs });
const base = buildContent({ resources: resourceDefs, actions: actionDefs });
const story = buildStoryContent(storyNodeDefs, base.actionsById, base.resourcesById);
export type GameContent = Content & StoryContent;
export const content: GameContent = { ...base, ...story };
export type { ActionDef, Content, ResourceDef } from './schema';