@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
21 lines (14 loc) • 490 B
JavaScript
import { AbstractSoundMaterialDefinition } from "../AbstractSoundMaterialDefinition.js";
export class SilentSoundMaterial extends AbstractSoundMaterialDefinition {
computeInteractionSounds(destination, destination_offset, interaction) {
return 0;
}
toJSON() {
return {};
}
fromJSON() {
// do nothing
}
}
SilentSoundMaterial.typeName = "SilentSoundMaterial";
SilentSoundMaterial.INSTANCE = new SilentSoundMaterial();