CabinGame/Program/src/Components/door.ts
Ronja b83024ded6 different UI for player inspection and adventure planning
also tons of tiny linter changes I guess
2020-04-24 15:01:39 +02:00

24 lines
478 B
TypeScript

import { Texture } from "pixi.js"
import { Component } from "ecsy"
import { Vector } from "../Datatypes/MathTypes/vector"
// Door component
export class Door extends Component {
open: boolean
openOffset: Vector
closedOffset: Vector
openTex: Texture
closedTex: Texture
reset() {
this.open = false
this.openOffset = new Vector(0, 0)
this.closedOffset = new Vector(0, 0)
this.openTex = null
this.closedTex = null
}
}