docs: document story engine and PR2 playable loop
This commit is contained in:
@@ -4,8 +4,16 @@ import type { ActionDef } from './schema';
|
||||
export const storyOutcomeSchema = z.discriminatedUnion('type', [
|
||||
z.object({ type: z.literal('setFlag'), flag: z.string().min(1) }),
|
||||
z.object({ type: z.literal('clearFlag'), flag: z.string().min(1) }),
|
||||
z.object({ type: z.literal('grantResource'), resourceId: z.string().min(1), amount: z.number().positive() }),
|
||||
z.object({ type: z.literal('consumeResource'), resourceId: z.string().min(1), amount: z.number().positive() }),
|
||||
z.object({
|
||||
type: z.literal('grantResource'),
|
||||
resourceId: z.string().min(1),
|
||||
amount: z.number().positive(),
|
||||
}),
|
||||
z.object({
|
||||
type: z.literal('consumeResource'),
|
||||
resourceId: z.string().min(1),
|
||||
amount: z.number().positive(),
|
||||
}),
|
||||
z.object({ type: z.literal('log'), text: z.string().min(1) }),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user