Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 1x 1x 1x 1x 1x 79x 79x 79x 79x 79x 79x 79x 79x 79x 79x 79x 79x 79x 2x 2x 4x 1x | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntityState = void 0;
const bounds2_1 = require("../../../models/bounds2");
const vector2_1 = require("../../../models/vector2");
const entityBase_1 = require("./entityBase");
class EntityState extends entityBase_1.EntityBase {
constructor() {
super();
this._hitBoxOffsetX = 0;
this._hitBoxOffsetY = 0;
this._drawHitBox = false;
this._lastHitBox = new bounds2_1.Bounds2();
this.zIndex = 0;
this.opacity = 1;
this.scale = 1;
this.velocity = 0;
this.rotation = 0;
this.hitBox = new bounds2_1.Bounds2();
this.direction = new vector2_1.Vector2();
this.transformOrigin = new vector2_1.Vector2(0.5, 0.5);
}
isActiveChanged(value) {
this.children.forEach(child => child.isActive = value);
}
isVisibleChanged(value) {
this.children.forEach(child => child.isVisible = value);
}
isEnabledChanged(value) {
this.children.forEach(child => child.isEnabled = value);
}
}
exports.EntityState = EntityState;
|