Don't use canvas I guess
This commit is contained in:
+10
-3
@@ -1,20 +1,27 @@
|
||||
export interface IPlayset {
|
||||
export class Playset {
|
||||
name: string
|
||||
height: number
|
||||
width: number
|
||||
|
||||
cels: ICel[]
|
||||
cels: Cel[]
|
||||
enabledSets: boolean[]
|
||||
}
|
||||
|
||||
export interface ICel {
|
||||
export class Cel {
|
||||
defaultImage: string
|
||||
initialPositions: Coordinate[]
|
||||
offset: Coordinate
|
||||
sets: boolean[]
|
||||
|
||||
currentPositions: Coordinate[]
|
||||
}
|
||||
|
||||
export class Coordinate {
|
||||
x: number
|
||||
y: number
|
||||
|
||||
constructor(x: number = 0, y: number = 0) {
|
||||
this.x = x
|
||||
this.y = y
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user