class SelectTool: Tool
cells: Grid

the copied cells from the attachable

actors: SparseMap

the copied actors from the attachable

origin: Vector2

location of the first point in a selection (creating or pasted)

second: Vector2

location of the other point in a selection (creating or pasted)

pasted: boolean

whether a selection is currently pasted/active

dragging: boolean

whether we’re dragging, either actively creating a selection or pasting one

dragOrigin: Vector2

where we started dragging from when moving a pasted selection

__new(self: SelectTool)
getCurrentRect(self: SelectTool): (
    topleftx?: number,
    toplefty?: number,
    bottomrightx?: number,
    bottomrighty?: number
)

Returns the four corners of the current rect.

copy(self: SelectTool, attachable: SpectrumAttachable)
paste(self: SelectTool)