jsge
Version:
Javascript Game Engine
81 lines (77 loc) • 1.26 kB
JavaScript
/**
* Support class for DrawTextObject
* for store the atlas x, y, cords,
* and the atlas index
*/
export class ImageAtlasPosition {
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* @type {number}
*/
/**
* @type {boolean}
*/
/**
* @hideconstructor
**/
constructor(width, height) {
this.
this.
}
/**
* @returns {number}
*/
get x() {
return this.
}
/**
* @returns {number}
*/
get y() {
return this.
}
/**
* @returns {number}
*/
get width() {
return this.
}
/**
* @returns {number}
*/
get height() {
return this.
}
/**
* @returns {number}
*/
get atlasIndex() {
return this.
}
get isMeasurementsSet() {
return this.
}
_setMeasurements(i, x, y) {
this.
this.
this.
this.
}
}