UNPKG

the-world-engine

Version:

three.js based, unity like game engine for browser

27 lines (24 loc) 543 B
import { Component } from "../../hierarchy_object/Component"; export var Direction; (function(i) { i[i["Up"] = 0] = "Up"; i[i["Down"] = 1] = "Down"; i[i["Left"] = 2] = "Left"; i[i["Right"] = 3] = "Right"; })(Direction || (Direction = {})); export class Directable extends Component { Do=Direction.Down; xo=false; get direction() { return this.Do; } set direction(i) { this.Do = i; } get isMoving() { return this.xo; } set isMoving(i) { this.xo = i; } }