vertecs
Version:
A typescript entity-component-system framework
47 lines (35 loc) • 895 B
text/typescript
import { Component } from "../core";
export default class Sound extends Component {
public constructor(
soundPath: string,
repeat: boolean = false,
volume: number = 1,
spacialized: boolean = false
) {
super();
this.
this.
this.
this.
}
public get spacialized() {
return this.
}
public get soundPath() {
return this.
}
public get sound() {
return this.
}
public set sound(sound: HTMLAudioElement | undefined) {
this.
}
public get repeat() {
return this.
}
}