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

/** Suspends the shared game clock. */
export default class PauseClock extends Activity
{
    constructor()
    {
        super('PauseClock');
    }

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

        clock.pause();
    }
}
