13 lines
589 B
TypeScript
13 lines
589 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, ActionGroup, ActionKind, Content, ResourceDef } from './schema';
|