Files
idlegame/src/content/index.ts
T
ginnoir c76265d648
CI / verify (push) Failing after 58s
CI / verify (pull_request) Failing after 41s
docs: document story engine and PR2 playable loop
2026-06-11 19:00:49 -05:00

13 lines
564 B
TypeScript

import { actionDefs, resourceDefs } from './definitions';
import { buildContent, type Content } from './schema';
import { storyNodeDefs } from './story';
import { buildStoryContent, type StoryContent } from './storySchema';
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';