import { defineStore } from "pinia"; import type { ShipSnapshot } from "../../contractsShips"; import type { StationSnapshot } from "../../contractsInfrastructure"; import type { FactionSnapshot } from "../../contractsFactions"; export const useGmStore = defineStore("gm", { state: () => ({ ships: [] as ShipSnapshot[], stations: [] as StationSnapshot[], factions: [] as FactionSnapshot[], }), actions: { updateWorld( ships: ShipSnapshot[], stations: StationSnapshot[], factions: FactionSnapshot[], ) { this.ships = ships; this.stations = stations; this.factions = factions; }, }, });