Something went wrong. Try again.
Starship Simulator Controls thoriumsim.com
Something went wrong. Try again.
591 B · 18 lines
TypeScript
at develop
12345678910111213141516171819import z from "zod";
import BaseShipSystemPlugin, { baseShipSystemSchema, registerSystem } from "./BaseSystem";import type { ShipSystemFlags } from "./shipSystemTypes";
export default class TargetingSystemPlugin extends BaseShipSystemPlugin { static schema = baseShipSystemSchema.extend({ type: z.literal("targeting"), }); static flags: ShipSystemFlags[] = []; type = "targeting" as const; allowMultiple = false;
// constructor(params: Partial<TargetingSystemPlugin>, plugin: BasePlugin) { // super(params, plugin); // }}registerSystem("targeting", TargetingSystemPlugin);