feat(content): add action story hints and merge GameContent
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user