Files
fxl.codes.kisekae/Scripts/pto.ts
T
2021-11-20 20:43:36 -07:00

28 lines
542 B
TypeScript

export interface Playset {
readonly name: string
readonly height: number
readonly width: number
readonly cels: Cel[]
readonly sets: boolean[]
}
export interface Cel {
readonly id: number
readonly fix: number
readonly initialPositions: Coordinate[]
readonly offset: Coordinate
currentPositions: Coordinate[]
currentFix: number
}
export class Coordinate {
readonly x: number
readonly y: number
constructor(x: number = 0, y: number = 0) {
this.x = x
this.y = y
}
}