import Locator from '../services/Locator';
import Activity from './Activity';

/** Stops rendering for every active scene. */
export default class StopAllScenes extends Activity
{
    constructor()
    {
        super('StopAllScenes');
    }

    override async execute(): Promise<void>
    {
        const scenes = Locator.scenes as { stopAll: () => void };

        scenes.stopAll();
    }
}
