@koreez/phaser3-isometric-plugin
Version:
Phaser3 isometirc plugin
97 lines • 3.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var IsoObject_1 = require("./IsoObject");
var IsoContainer = (function (_super) {
tslib_1.__extends(IsoContainer, _super);
function IsoContainer(scene, x, y, z, children) {
var _this = _super.call(this, scene, x, y, children) || this;
_this.setIsoX = function (value) {
_this.isoX = value;
return _this;
};
_this.setIsoY = function (value) {
_this.isoY = value;
return _this;
};
_this.setIsoZ = function (value) {
_this.isoZ = value;
return _this;
};
_this.__isoGameObject = new IsoObject_1.IsoObject(scene.isoProjector, _this, x, y, z);
return _this;
}
Object.defineProperty(IsoContainer.prototype, "isoX", {
get: function () {
return this.__isoGameObject.isoX;
},
set: function (value) {
this.__isoGameObject.isoX = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "isoY", {
get: function () {
return this.__isoGameObject.isoY;
},
set: function (value) {
this.__isoGameObject.isoY = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "isoZ", {
get: function () {
return this.__isoGameObject.isoZ;
},
set: function (value) {
this.__isoGameObject.isoZ = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "isoPosition", {
get: function () {
return this.__isoGameObject.isoPosition;
},
set: function (value) {
this.__isoGameObject.isoPosition = value;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "isoBounds", {
get: function () {
return this.__isoGameObject.isoBounds;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "snap", {
get: function () {
return this.__isoGameObject.snap;
},
enumerable: true,
configurable: true
});
Object.defineProperty(IsoContainer.prototype, "projector", {
get: function () {
return this.__isoGameObject.projector;
},
enumerable: true,
configurable: true
});
IsoContainer.prototype.set2DPosition = function (x, y) {
this.__isoGameObject.set2DPosition(x, y);
return this;
};
IsoContainer.prototype.setIsoPosition = function (point3) {
this.__isoGameObject.setIsoPosition(point3);
return this;
};
IsoContainer.ISO_CONTAINER = 'isoContainer';
return IsoContainer;
}(Phaser.GameObjects.Container));
exports.IsoContainer = IsoContainer;
//# sourceMappingURL=IsoContainer.js.map