@moderrkowo/jsgl
Version:
Client-side JavaScript library for creating web 2D games. Focusing at objective game.
36 lines (35 loc) • 1.51 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.TextGameObject = void 0;
var GameObject_1 = require("./GameObject");
var TextGameObject = /** @class */ (function (_super) {
__extends(TextGameObject, _super);
function TextGameObject() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(TextGameObject.prototype, "text", {
set: function (content) {
if (this.style !== undefined)
this.style.content = content;
},
enumerable: false,
configurable: true
});
return TextGameObject;
}(GameObject_1.GameObject));
exports.TextGameObject = TextGameObject;