This commit is contained in:
Lani Aung
2021-10-17 13:24:24 -06:00
parent d1d891881f
commit 36e5726eaf
9 changed files with 207 additions and 93 deletions
+15 -14
View File
@@ -1,24 +1,25 @@
export class Playset {
name: string
height: number
width: number
cels: Cel[]
enabledSets: boolean[]
export interface Playset {
readonly name: string
readonly height: number
readonly width: number
readonly cels: Cel[]
readonly enabledSets: boolean[]
}
export class Cel {
defaultImage: string
initialPositions: Coordinate[]
offset: Coordinate
sets: 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 {
x: number
y: number
readonly x: number
readonly y: number
constructor(x: number = 0, y: number = 0) {
this.x = x