Something went wrong. Try again.
Starship Simulator Controls thoriumsim.com
Something went wrong. Try again.
881 B · 26 lines
TypeScript
at develop
123456789101112131415161718192021222324252627import { conditionSchema } from "@thorium/utils/flags/actionSchema";import z from "zod";
export const isTrigger = z .object({ active: z.boolean().default(true), multiple: z.boolean().default(false), /** * Whether this trigger condition will continue to exist after the * timeline step has proceeded. Set this to true if you want the * trigger remain active. It will still automatically deactivate * once it has been triggered once (unless "multiple" is on). **/ persist: z.boolean().default(false), triggeredAt: z .union([z.string(), z.date()]) .transform((value) => new Date(value)) .nullable() .default(null), conditions: z.array(conditionSchema).default([]), blocks: z.any().array().default([]), callReturnBlocks: z.any().array().optional(), stepId: z.number().optional(), localVariables: z.any().optional(), }) .default({});