import { TrackType } from "../constants/TrackType"; import { Cell } from "./Cell"; import { InternalNode } from "./InternalNode"; import { Node } from "./Node"; export class PlacedPiece { tracks: Set<{ nodes: { firstNode: Node; secondNode: Node; }; type: TrackType; }>; internalNode?: InternalNode; cell: Cell; constructor( tracks: Set<{ nodes: { firstNode: Node; secondNode: Node }; type: TrackType; }>, internalNodes: InternalNode | undefined, cell: Cell, ) { this.tracks = tracks; this.internalNode = internalNodes; this.cell = cell; } }