mdx-m3-viewer
Version:
A browser WebGL model viewer. Mainly focused on models of the games Warcraft 3 and Starcraft 2.
15 lines (12 loc) • 315 B
text/typescript
import AttachmentPoint from '../../../parsers/m3/attachmentpoint';
/**
* An M3 attachment.
*/
export default class M3Attachment {
name: string;
bone: number;
constructor(attachment: AttachmentPoint) {
this.name = attachment.name.getAll().join('');
this.bone = attachment.bone;
}
}