Files
fxl.codes.kisekae/Scripts/pto.ts
T
2021-10-17 13:24:24 -06:00

29 lines
578 B
TypeScript

export interface Playset {
readonly name: string
readonly height: number
readonly width: number
readonly cels: Cel[]
readonly enabledSets: boolean[]
}
export interface Cel {
readonly id: number
readonly fix: number
readonly initialPositions: Coordinate[]
readonly offset: Coordinate
readonly sets: boolean[]
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
}
}