2020-02-06 10:57:43 +00:00
|
|
|
import { Point } from "../Datatypes/point"
|
2020-02-06 11:02:44 +00:00
|
|
|
import { Component } from "ecsy"
|
2020-02-06 10:57:43 +00:00
|
|
|
|
|
|
|
|
// Position component
|
2020-02-06 11:02:44 +00:00
|
|
|
export class Position extends Component {
|
2020-02-06 10:57:43 +00:00
|
|
|
value: Point
|
|
|
|
|
|
|
|
|
|
reset() {
|
|
|
|
|
this.value = new Point(0, 0)
|
|
|
|
|
}
|
|
|
|
|
}
|