UNPKG

mdx-m3-viewer

Version:

A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.

25 lines 623 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utf8_1 = require("../../../common/utf8"); /** * An import. */ class Import { constructor() { this.isCustom = 0; this.path = ''; } load(stream) { this.isCustom = stream.readUint8(); this.path = stream.readNull(); } save(stream) { stream.writeUint8(this.isCustom); stream.writeNull(this.path); } getByteLength() { return 2 + (0, utf8_1.byteLengthUtf8)(this.path); } } exports.default = Import; //# sourceMappingURL=import.js.map