UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

61 lines (46 loc) 1.01 kB
import { AttachmentSocket } from "./AttachmentSocket.js"; /** * @extends {AttachmentSocket} */ export class BoneAttachmentSocket extends AttachmentSocket { constructor() { super(); this.boneName = ""; } fromJSON(j) { super.fromJSON(j); this.boneName = j.boneName; } /** * * @param {BoneAttachmentSocket} other */ copy(other) { super.copy(other); this.boneName = other.boneName; } /** * * @return {BoneAttachmentSocket} */ clone() { const r = new BoneAttachmentSocket(); r.copy(this); return r; } /** * * @param j * @returns {BoneAttachmentSocket} */ static fromJSON(j) { const r = new BoneAttachmentSocket(); r.fromJSON(j); return r; } } /** * @readonly * @type {boolean} */ BoneAttachmentSocket.prototype.isBoneAttachmentSocket = true;