@drewsonne/maya-dates
Version:
Typescript package to manipulate dates in the Maya Calendar
45 lines • 1.42 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LordOfTheNight = exports.lords = exports._LordsOfTheNight = void 0;
var LordOfTheNight = (function () {
function LordOfTheNight(id) {
this.id = id;
}
LordOfTheNight.prototype.toString = function () {
return "G".concat(this.id);
};
return LordOfTheNight;
}());
exports.LordOfTheNight = LordOfTheNight;
var _LordsOfTheNight = (function () {
function _LordsOfTheNight() {
this.G1 = new LordOfTheNight(1);
this.G2 = new LordOfTheNight(2);
this.G3 = new LordOfTheNight(3);
this.G4 = new LordOfTheNight(4);
this.G5 = new LordOfTheNight(5);
this.G6 = new LordOfTheNight(6);
this.G7 = new LordOfTheNight(7);
this.G8 = new LordOfTheNight(8);
this.G9 = new LordOfTheNight(9);
this.lookup = {
'G1': this.G1,
'G2': this.G2,
'G3': this.G3,
'G4': this.G4,
'G5': this.G5,
'G6': this.G6,
'G7': this.G7,
'G8': this.G8,
'G9': this.G9
};
}
_LordsOfTheNight.prototype.get = function (id) {
return this.lookup[id];
};
return _LordsOfTheNight;
}());
exports._LordsOfTheNight = _LordsOfTheNight;
var lords = new _LordsOfTheNight();
exports.lords = lords;
//# sourceMappingURL=lord-of-night.js.map