UNPKG

mdx-m3-viewer

Version:

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

31 lines (28 loc) 512 B
/** * A tech availablity change. */ export default class TechAvailabilityChange { /** * */ constructor() { /** @member {number} */ this.playerFlags = 0; /** @member {string} */ this.id = '\0\0\0\0'; } /** * @param {BinaryStream} stream */ load(stream) { this.playerFlags = stream.readUint32(); this.id = stream.read(4); } /** * @param {BinaryStream} stream */ save(stream) { stream.writeUint32(this.playerFlags); stream.write(this.id); } }