UNPKG

mdx-m3-viewer

Version:

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

20 lines (16 loc) 432 B
import BinaryStream from '../../../common/binarystream'; /** * A tech availablity change. */ export default class TechAvailabilityChange { playerFlags: number = 0; id: string = '\0\0\0\0'; load(stream: BinaryStream) { this.playerFlags = stream.readUint32(); this.id = stream.read(4); } save(stream: BinaryStream) { stream.writeUint32(this.playerFlags); stream.write(this.id); } }