import { settingsDataMap, cineRuntimeDataMap } from "../../../../data/maps";
import { cinematicSettingsDB } from "../../../../cinematic";
import { notifyPlayer } from "../../../helpers/notify-player";
export function cineResetSettings(player) {
    const cineRuntimeData = cineRuntimeDataMap.get(player.id);
    if (cineRuntimeData.isCameraInMotion === true) {
        player.playSound("note.bass");
        notifyPlayer(player, "rc2.mes.cannot.reset.settings.while.camera.is.in.motion");
        return;
    }
    const current = settingsDataMap.get(cineRuntimeData.loadedCinematic);
    const defaults = {
        ...current,
        hideHud: true,
        easeType: 0,
        camFacingType: 0,
        camFacingX: 0,
        camFacingY: 0,
        camSpeed: 0.8,
    };
    settingsDataMap.set(cineRuntimeData.loadedCinematic, defaults);
    cinematicSettingsDB.set(cineRuntimeData.loadedCinematic, defaults);
    notifyPlayer(player, "rc2.mes.all.settings.have.been.reset.to.default");
}
