import { Component } from "../../ecs/classes/Component"; /** Component class for background music. */ export class BackgroundMusic extends Component { /** Audio track container. */ audio: any; /** Source of the audio track. */ src: any; /** Volumne of the sound track. **Default** value is 0.5. */ volume: number; constructor() { super(); this.audio = null; this.src = null; this.volume = 0.5; } }