UNPKG

mdx-m3-viewer

Version:

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

21 lines 509 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * An inventory item. */ class InventoryItem { constructor() { this.slot = 0; this.id = '\0\0\0\0'; } load(stream) { this.slot = stream.readInt32(); this.id = stream.readBinary(4); } save(stream) { stream.writeInt32(this.slot); stream.writeBinary(this.id); } } exports.default = InventoryItem; //# sourceMappingURL=inventoryitem.js.map