import Activity from './Activity';

type CasinoRoundsModel = {
    enterCasinoRoundsMode: () => void;
    completeModeSwitching: () => void;
};

/** Switches the underlying model into casino rounds mode. */
export default class SwitchToCasinoRounds extends Activity
{
    private readonly model: CasinoRoundsModel;

    constructor(model: CasinoRoundsModel)
    {
        super('SwitchToCasinoRounds');
        this.model = model;
    }

    override async execute(): Promise<void>
    {
        this.model.enterCasinoRoundsMode();
        this.model.completeModeSwitching();
    }
}
