mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
21 lines (20 loc) • 567 B
TypeScript
import BinaryStream from '../../common/binarystream';
import IndexEntry, { EntryType, SingleEntryType } from './indexentry';
/**
* A reference.
*/
export default class Reference {
index: IndexEntry[] | null;
entries: number;
id: number;
flags: number;
load(stream: BinaryStream, index: IndexEntry[]): void;
/**
* Get the entries this index entry references.
*/
get(): EntryType | undefined;
/**
* Get the first entry this index entry references.
*/
first(): SingleEntryType | undefined;
}