Something went wrong. Try again.
Starship Simulator Controls thoriumsim.com
Something went wrong. Try again.
579 B · 33 lines
TypeScript
at develop
12345678910111213141516171819202122232425262728293031323334import z from "zod";
const shipSystemTypes = z.enum([ "warpEngines", "impulseEngines", "generic", "inertialDampeners", "thrusters", "reactor", "battery", "torpedoLauncher", "targeting", "shields", "phasers", "sensors", "mainComputer", "coolantTank", "navigation", "longRangeComm", "shortRangeComm", "exocomps", "coolantPump", "coolantRadiator",]);
export type ShipSystemTypes = z.infer<typeof shipSystemTypes>;
export const isShipSystem = z .object({ type: shipSystemTypes.default("generic"), shipId: z.number().int().default(-1), }) .default({});