UNPKG

mdx-m3-viewer

Version:

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

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