mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
19 lines (16 loc) • 492 B
text/typescript
import BinaryStream from '../../common/binarystream';
import IndexEntry from './indexentry';
import Reference from './reference';
/**
* An animation getter.
*/
export default class Stg {
version: number = -1;
name: Reference = new Reference();
stcIndices: Reference = new Reference();
load(stream: BinaryStream, version: number, index: IndexEntry[]) {
this.version = version;
this.name.load(stream, index);
this.stcIndices.load(stream, index);
}
}