@maniajs/gbxparser
Version:
ManiaPlanet GBX File Parser.
50 lines (44 loc) • 1.41 kB
JavaScript
;
/**
* Map
* @type {Map}
*
* @property {{bronze: number, silver: number, gold: number, author: number}} time
* @property {number} price
* @property {number} authorScore score of author, could be time or (stunt)score.
* @property {number} type Numeric map type. 0 == Race.
* @property {boolean} isMultilap
* @property {string} editor Can be 'simple' or 'advanced'
* @property {number} checkpoints
* @property {number} laps
*
* @property {string} uid
* @property {string} environment
* @property {string} name
* @property {string} mood
* @property {{id: string, author: string}} decorationEnvironment
* @property {string} mapType
* @property {string} style
* @property {string} title
*
* @property {string} xml
*
* @property {Buffer} thumb
* @property {string} comment
*
* @property {{version:number,login:string,nickname:string,zone:string,extra:string}} author
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Map = // version, login, nick, zone, extra.
function Map() {
_classCallCheck(this, Map);
this.time = {};
this.decorationEnvironment = {};
this.author = {};
} // id, author
// string type format, Trackmania\Race.
;
exports.default = Map;