UNPKG

mdx-m3-viewer

Version:

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

21 lines 506 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * A dropped item. */ class DroppedItem { constructor() { this.id = '\0\0\0\0'; this.chance = 0; } load(stream) { this.id = stream.readBinary(4); this.chance = stream.readInt32(); } save(stream) { stream.writeBinary(this.id); stream.writeInt32(this.chance); } } exports.default = DroppedItem; //# sourceMappingURL=droppeditem.js.map